From: Howard Chu Date: Mon, 22 Nov 2004 03:56:27 +0000 (+0000) Subject: Tweak findcsn conditions for validating cookie csn X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~249 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=99ee94a3de0c299ae243966f03dffbb30c2a25e5;p=openldap Tweak findcsn conditions for validating cookie csn --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 3690d45a6c..7b6cd33d6d 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -257,9 +257,9 @@ syncprov_findcsn( Operation *op, int mode ) } else { if ( locked ) { ldap_pvt_thread_mutex_unlock( &si->si_csn_mutex ); - locked = 1; + locked = 0; } - cf.f_choice = LDAP_FILTER_EQUALITY; + cf.f_choice = LDAP_FILTER_LE; fop.ors_attrsonly = 1; fop.ors_attrs = slap_anlist_no_attrs; fop.ors_slimit = 1;