mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
mdb_del must ignore data if db not opened with MDB_DUPSORT
This commit is contained in:
parent
1ac3c8308f
commit
335f0e4cee
@ -7192,6 +7192,10 @@ mdb_del(MDB_txn *txn, MDB_dbi dbi,
|
||||
mdb_cursor_init(&mc, txn, dbi, &mx);
|
||||
|
||||
exact = 0;
|
||||
if (!F_ISSET(txn->mt_dbs[dbi].md_flags, MDB_DUPSORT)) {
|
||||
/* must ignore any data */
|
||||
data = NULL;
|
||||
}
|
||||
if (data) {
|
||||
op = MDB_GET_BOTH;
|
||||
rdata = *data;
|
||||
|
Loading…
Reference in New Issue
Block a user