mirror of
https://gitflic.ru/project/erthink/libmdbx.git
synced 2025-06-14 19:18:52 +00:00
mdbx: перезапись в mdbx_put()
всех мульти-значений ключа при отсутствии флага MDBX_NOOVERWRITE
.
This commit is contained in:
parent
a387284458
commit
cb48ee8f3d
@ -21110,6 +21110,10 @@ int mdbx_put(MDBX_txn *txn, MDBX_dbi dbi, const MDBX_val *key, MDBX_val *data,
|
|||||||
tASSERT(txn, XCURSOR_INITED(&cx.outer) &&
|
tASSERT(txn, XCURSOR_INITED(&cx.outer) &&
|
||||||
cx.outer.mc_xcursor->mx_db.md_entries > 1);
|
cx.outer.mc_xcursor->mx_db.md_entries > 1);
|
||||||
rc = MDBX_EMULTIVAL;
|
rc = MDBX_EMULTIVAL;
|
||||||
|
if ((flags & MDBX_NOOVERWRITE) == 0) {
|
||||||
|
flags -= MDBX_CURRENT;
|
||||||
|
rc = cursor_del(&cx.outer, MDBX_ALLDUPS);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user