]> git.sur5r.net Git - openldap/commitdiff
Tweak findcsn conditions for validating cookie csn
authorHoward Chu <hyc@openldap.org>
Mon, 22 Nov 2004 03:56:27 +0000 (03:56 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 22 Nov 2004 03:56:27 +0000 (03:56 +0000)
servers/slapd/overlays/syncprov.c

index 3690d45a6c49aaf542052c69a92b6252f0afacfa..7b6cd33d6d7163595a678dbaa2f5c45e4b743b26 100644 (file)
@@ -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;