ITS#9500 fix regression from ITS#8662

mdb_load -a patch broke overwriting with MDB_CURRENT
This commit is contained in:
Howard Chu 2021-03-23 20:51:19 +00:00
parent 0b6bfb1fd8
commit ab5f0ec37a
No known key found for this signature in database
GPG Key ID: FD2A70B44AB11BA7
1 changed files with 1 additions and 1 deletions

View File

@ -7867,7 +7867,7 @@ put_sub:
xdata.mv_size = 0; xdata.mv_size = 0;
xdata.mv_data = ""; xdata.mv_data = "";
leaf = NODEPTR(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top]); 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; xflags = MDB_CURRENT|MDB_NOSPILL;
} else { } else {
mdb_xcursor_init1(mc, leaf); mdb_xcursor_init1(mc, leaf);