mdbx: zeroing MDBX_page.mp_validator for Valgrind/AddressSanitizer.

This commit is contained in:
Leo Yuriev 2017-06-06 17:41:06 +03:00
parent 465459dc58
commit 1d15ae4b13

View File

@ -3075,6 +3075,7 @@ static int mdbx_page_flush(MDBX_txn *txn, pgno_t keep) {
continue;
}
dp->mp_flags &= ~P_DIRTY;
dp->mp_validator = 0 /* TODO */;
env->me_sync_pending +=
IS_OVERFLOW(dp) ? pgno2bytes(env, dp->mp_pages) : env->me_psize;
}
@ -3094,6 +3095,7 @@ static int mdbx_page_flush(MDBX_txn *txn, pgno_t keep) {
pgno = dl[i].mid;
/* clear dirty flag */
dp->mp_flags &= ~P_DIRTY;
dp->mp_validator = 0 /* TODO */;
pos = pgno2bytes(env, pgno);
size = IS_OVERFLOW(dp) ? pgno2bytes(env, dp->mp_pages) : env->me_psize;
env->me_sync_pending += size;