Commit 335f0e4c authored by Salvador Ortiz's avatar Salvador Ortiz Committed by Howard Chu
Browse files

mdb_del must ignore data if db not opened with MDB_DUPSORT

parent 1ac3c830
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment