Keep MC_OVPG() == NULL when not MDB_REMAPPING()

Needed since 418ea8b94e14567ba2be9f9772f38f563a0d7e9c introduced
option MDB_REMAP_CHUNKS.
mdb.master3
Hallvard Furuseth 7 years ago committed by Howard Chu
parent 499866aba7
commit 972917449d
  1. 4
      libraries/liblmdb/mdb.c

@ -1502,7 +1502,9 @@ struct MDB_cursor {
#if MDB_RPAGE_CACHE
MDB_page *mc_ovpg; /**< a referenced overflow page */
# define MC_OVPG(mc) ((mc)->mc_ovpg)
# define MC_SET_OVPG(mc, pg) ((mc)->mc_ovpg = (pg))
# define MC_SET_OVPG(mc, pg) \
((mc)->mc_ovpg = \
(MDB_REMAPPING((mc)->mc_txn->mt_env->me_flags) ? (pg) : NULL))
#else
# define MC_OVPG(mc) ((MDB_page *)0)
# define MC_SET_OVPG(mc, pg) ((void)0)

Loading…
Cancel
Save