mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 12:09:35 -05:00
More for large multival attrs
Fix a4c7943d39 entry delete
Ignore when id2v table is empty
This commit is contained in:
parent
ff24e57ad4
commit
76d9be0196
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue