diff options
author | Howard Chu <hyc@symas.com> | 2021-03-23 20:51:19 +0000 |
---|---|---|
committer | Howard Chu <hyc@symas.com> | 2021-03-23 20:51:19 +0000 |
commit | ab5f0ec37aa7c71bc34d4a24bc33e9286298c0cc (patch) | |
tree | 0af0458341d70a44bd03156474271422dacc1a6a /external | |
parent | Merge pull request #7399 (diff) | |
download | monero-ab5f0ec37aa7c71bc34d4a24bc33e9286298c0cc.tar.xz |
ITS#9500 fix regression from ITS#8662
mdb_load -a patch broke overwriting with MDB_CURRENT
Diffstat (limited to 'external')
-rw-r--r-- | external/db_drivers/liblmdb/mdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/external/db_drivers/liblmdb/mdb.c b/external/db_drivers/liblmdb/mdb.c index 8699b445e..96c741f66 100644 --- a/external/db_drivers/liblmdb/mdb.c +++ b/external/db_drivers/liblmdb/mdb.c @@ -7867,7 +7867,7 @@ put_sub: xdata.mv_size = 0; xdata.mv_data = ""; leaf = NODEPTR(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top]); - if (flags == MDB_CURRENT) { + if ((flags & (MDB_CURRENT|MDB_APPENDDUP)) == MDB_CURRENT) { xflags = MDB_CURRENT|MDB_NOSPILL; } else { mdb_xcursor_init1(mc, leaf); |