From 76d9be0196f680aca183bdc88a858636a2578ff0 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 5 Feb 2016 21:59:43 +0000 Subject: [PATCH] More for large multival attrs Fix a4c7943d39df0140edacb5774e977be3f72b694c entry delete Ignore when id2v table is empty --- servers/slapd/back-mdb/id2entry.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.39.5