diff --git a/CHANGES b/CHANGES index 131489e8193d32b4722f5d759929c88f09c8e9c3..4b59519837b9f013a5b2f3ef4b978ea0365b7624 100644 --- a/CHANGES +++ b/CHANGES @@ -19,7 +19,6 @@ OpenLDAP 2.4.16 Engineering Fixed slapo-accesslog interaction with ppolicy (ITS#5979) Fixed slapo-dynlist conversion to cn=config (ITS#6002) Fixed slapo-syncprov newCookie sync messages (ITS#5972) - Fixed slapo-syncprov multiple CSN propagation (ITS#5973) Build Environment Cleaned up alloc/free functions for Windows (ITS#6005) Documentation diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 7520656cf7ddfac6416149b566d19261cc1f1437..84fe37afcbcc98b0ffd8fd65944e9312a1839a94 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -1659,56 +1659,6 @@ syncprov_op_response( Operation *op, SlapReply *rs ) maxcsn.bv_len = sizeof(cbuf); ldap_pvt_thread_rdwr_wlock( &si->si_csn_rwlock ); - if ( op->o_dont_replicate && - op->orm_modlist->sml_op == LDAP_MOD_REPLACE && - op->orm_modlist->sml_desc == slap_schema.si_ad_contextCSN ) { - /* Catch contextCSN updates from syncrepl. We have to look at - * all the attribute values, as there may be more than one csn - * that changed, and only one can be passed in the csn queue. - */ - Modifications *mod = op->orm_modlist; - int i, j, sid; - - for ( i=0; i<mod->sml_numvals; i++ ) { - sid = slap_parse_csn_sid( &mod->sml_values[i] ); - - for ( j=0; j<si->si_numcsns; j++ ) { - if ( sid == si->si_sids[j] ) { - if ( ber_bvcmp( &mod->sml_values[i], &si->si_ctxcsn[j] ) > 0 ) { - ber_bvreplace( &si->si_ctxcsn[j], &mod->sml_values[i] ); - csn_changed = 1; - } - break; - } - } - - if ( j == si->si_numcsns ) { - value_add_one( &si->si_ctxcsn, &mod->sml_values[i] ); - si->si_numcsns++; - si->si_sids = ch_realloc( si->si_sids, si->si_numcsns * - sizeof(int)); - si->si_sids[j] = sid; - csn_changed = 1; - } - } - ldap_pvt_thread_rdwr_wunlock( &si->si_csn_rwlock ); - - if ( csn_changed ) { - ldap_pvt_thread_mutex_lock( &si->si_ops_mutex ); - have_psearches = ( si->si_ops != NULL ); - ldap_pvt_thread_mutex_unlock( &si->si_ops_mutex ); - - if ( have_psearches ) { - for ( sm = opc->smatches; sm; sm=sm->sm_next ) { - if ( sm->sm_op->s_op->o_abandon ) - continue; - syncprov_qresp( opc, sm->sm_op, LDAP_SYNC_NEW_COOKIE ); - } - } - } - return SLAP_CB_CONTINUE; - } - slap_get_commit_csn( op, &maxcsn, &foundit ); if ( BER_BVISEMPTY( &maxcsn ) && SLAP_GLUE_SUBORDINATE( op->o_bd )) { /* syncrepl queues the CSN values in the db where