diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index 225ffc4..3869124 100644 --- a/libraries/libmdb/mdb.c +++ b/libraries/libmdb/mdb.c @@ -3010,6 +3010,9 @@ set3: } } else { + if (mc->mc_db->md_flags & MDB_DUPSORT) { + mc->mc_xcursor->mx_cursor.mc_flags &= ~C_INITIALIZED; + } if ((rc = mdb_read_data(mc->mc_txn, leaf, data)) != MDB_SUCCESS) return rc; }