From: Howard Chu Date: Fri, 5 Feb 2016 21:59:43 +0000 (+0000) Subject: More for large multival attrs X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=76d9be0196f680aca183bdc88a858636a2578ff0;p=openldap More for large multival attrs Fix a4c7943d39df0140edacb5774e977be3f72b694c entry delete Ignore when id2v table is empty --- diff --git a/servers/slapd/back-mdb/id2entry.c b/servers/slapd/back-mdb/id2entry.c index 7ca1658f94..340d2a85c1 100644 --- a/servers/slapd/back-mdb/id2entry.c +++ b/servers/slapd/back-mdb/id2entry.c @@ -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)