]> git.sur5r.net Git - openldap/commitdiff
From HEAD:
authorKurt Zeilenga <kurt@openldap.org>
Tue, 29 Nov 2005 18:43:30 +0000 (18:43 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 29 Nov 2005 18:43:30 +0000 (18:43 +0000)
ITS#4226 must close cursor when limiting candidate check
ITS#4227 delta-sync should use subtree search

CHANGES
servers/slapd/back-bdb/filterindex.c
servers/slapd/syncrepl.c

diff --git a/CHANGES b/CHANGES
index 2fc5cc9292a7e4c4d3e8bd9be1f7cd4e1cab6617..3d457c39289d3bf1c006f5792d190ac259c54fc9 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -7,11 +7,13 @@ OpenLDAP 2.3.13 Engineering
        Fixed slapd sizelimit disclose issue (ITS#4213)
        Fixed slapd gentlehup write restrict issue (ITS#3717)
        Fixed slapd gentlehup abnormal issue (ITS#4217)
+       Fixed slapd delta-sync subtree scope issue (ITS#4227)
        Fixed slapd cn=config OID/name pollution issue (ITS#4185)
        Fixed slapd cn=config rootdn issue (ITS#4192)
        Fixed slapd cn=config slaptest -F without -f issue (ITS#4194)
        Fixed slapd cn=config ACL issue (ITS#4218)
        Fixed slapd-bdb negative results IDL cache issue (ITS#4223)
+       Fixed slapd-bdb cursor close issue (ITS#4226)
        Fixed slapd-hdb slapadd -q issue (ITS#4210)
        Fixed slapd-hdb missing results issue (ITS#4186)
        Fixed slapd-ldap potential double free issue (ITS#4189)
index a1e124d614cea1e5e08935b1815907d4efdce687..d12b4f654842af02e7b8f98062a9c52f16e1545b 100644 (file)
@@ -1066,8 +1066,10 @@ inequality_candidates(
                bdb_idl_union( ids, tmp );
 
                if( op->ors_limit && op->ors_limit->lms_s_unchecked != -1 &&
-                       BDB_IDL_N( ids ) >= (unsigned) op->ors_limit->lms_s_unchecked )
+                       BDB_IDL_N( ids ) >= (unsigned) op->ors_limit->lms_s_unchecked ) {
+                       cursor->c_close( cursor );
                        break;
+               }
        }
        ber_bvarray_free_x( keys, op->o_tmpmemctx );
 
index abce34456cc44687cf55e7bae5d7294f85b078e6..2fd3d59f594084b0e1d2a494d04d859ae75b5457 100644 (file)
@@ -349,7 +349,7 @@ ldap_sync_search(
                filter = si->si_logfilterstr.bv_val;
                attrs = lattrs;
                attrsonly = 0;
-               scope = LDAP_SCOPE_ONELEVEL;
+               scope = LDAP_SCOPE_SUBTREE;
        } else {
                rhint = 1;
                base = si->si_base.bv_val;