ITS#8321 Fix mdb_cursor_set

Always reinit mc_pg[0] if cursor is not C_INITIALIZED
It might have a stale value when using nested txns
vl32b
Howard Chu 9 years ago
parent b5ce8108e8
commit cf8677e1b8
  1. 2
      libraries/liblmdb/mdb.c

@ -5999,6 +5999,8 @@ mdb_cursor_set(MDB_cursor *mc, MDB_val *key, MDB_val *data,
} else } else
return MDB_NOTFOUND; return MDB_NOTFOUND;
} }
} else {
mc->mc_pg[0] = 0;
} }
rc = mdb_page_search(mc, key, 0); rc = mdb_page_search(mc, key, 0);

Loading…
Cancel
Save