More for multival attrs

Fix id2entry_delete when deleting last multival entry in DB
This commit is contained in:
Howard Chu 2016-07-22 10:30:57 +01:00
parent 3d5601e0ba
commit 5e6aadd779

View File

@ -407,7 +407,12 @@ int mdb_id2entry_delete(
rc = mdb_cursor_del( mvc, MDB_NODUPDATA );
if (rc)
return rc;
mdb_cursor_get( mvc, &key, NULL, MDB_GET_CURRENT );
rc = mdb_cursor_get( mvc, &key, NULL, MDB_GET_CURRENT );
if (rc) {
if (rc == MDB_NOTFOUND)
rc = MDB_SUCCESS;
break;
}
}
return rc;
}