mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#9707 syncrepl: don't set lastCookie if none present
This commit is contained in:
parent
a73ddda533
commit
bb17e23f28
1 changed files with 5 additions and 3 deletions
|
|
@ -1099,9 +1099,11 @@ do_syncrep1(
|
||||||
Debug( LDAP_DEBUG_SYNC, "do_syncrep1: %s starting refresh (sending cookie=%s)\n",
|
Debug( LDAP_DEBUG_SYNC, "do_syncrep1: %s starting refresh (sending cookie=%s)\n",
|
||||||
si->si_ridtxt, si->si_syncCookie.octet_str.bv_val );
|
si->si_ridtxt, si->si_syncCookie.octet_str.bv_val );
|
||||||
|
|
||||||
|
if ( si->si_syncCookie.octet_str.bv_val ) {
|
||||||
ldap_pvt_thread_mutex_lock( &si->si_monitor_mutex );
|
ldap_pvt_thread_mutex_lock( &si->si_monitor_mutex );
|
||||||
ber_bvreplace( &si->si_lastCookieSent, &si->si_syncCookie.octet_str );
|
ber_bvreplace( &si->si_lastCookieSent, &si->si_syncCookie.octet_str );
|
||||||
ldap_pvt_thread_mutex_unlock( &si->si_monitor_mutex );
|
ldap_pvt_thread_mutex_unlock( &si->si_monitor_mutex );
|
||||||
|
}
|
||||||
|
|
||||||
rc = ldap_sync_search( si, op->o_tmpmemctx );
|
rc = ldap_sync_search( si, op->o_tmpmemctx );
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue