]> git.sur5r.net Git - openldap/commitdiff
More for large multival attrs
authorHoward Chu <hyc@openldap.org>
Fri, 5 Feb 2016 21:59:43 +0000 (21:59 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 5 Feb 2016 21:59:43 +0000 (21:59 +0000)
Fix a4c7943d39df0140edacb5774e977be3f72b694c entry delete
Ignore when id2v table is empty

servers/slapd/back-mdb/id2entry.c

index 7ca1658f94e035470c9700d8ddb041c8fa40af2f..340d2a85c14675ebc0ebe523f42d67a43159502c 100644 (file)
@@ -398,8 +398,11 @@ int mdb_id2entry_delete(
                return rc;
 
        rc = mdb_cursor_get( mvc, &key, NULL, MDB_SET_RANGE );
-       if (rc && rc != MDB_NOTFOUND)
+       if (rc) {
+               if (rc == MDB_NOTFOUND)
+                       rc = MDB_SUCCESS;
                return rc;
+       }
        while (*(ID *)key.mv_data == e->e_id ) {
                rc = mdb_cursor_del( mvc, MDB_NODUPDATA );
                if (rc)