mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-06 19:04:12 +08:00
mdbx: zeroing MDBX_page.mp_validator for Valgrind/AddressSanitizer.
This commit is contained in:
parent
465459dc58
commit
1d15ae4b13
@ -3075,6 +3075,7 @@ static int mdbx_page_flush(MDBX_txn *txn, pgno_t keep) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
dp->mp_flags &= ~P_DIRTY;
|
dp->mp_flags &= ~P_DIRTY;
|
||||||
|
dp->mp_validator = 0 /* TODO */;
|
||||||
env->me_sync_pending +=
|
env->me_sync_pending +=
|
||||||
IS_OVERFLOW(dp) ? pgno2bytes(env, dp->mp_pages) : env->me_psize;
|
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;
|
pgno = dl[i].mid;
|
||||||
/* clear dirty flag */
|
/* clear dirty flag */
|
||||||
dp->mp_flags &= ~P_DIRTY;
|
dp->mp_flags &= ~P_DIRTY;
|
||||||
|
dp->mp_validator = 0 /* TODO */;
|
||||||
pos = pgno2bytes(env, pgno);
|
pos = pgno2bytes(env, pgno);
|
||||||
size = IS_OVERFLOW(dp) ? pgno2bytes(env, dp->mp_pages) : env->me_psize;
|
size = IS_OVERFLOW(dp) ? pgno2bytes(env, dp->mp_pages) : env->me_psize;
|
||||||
env->me_sync_pending += size;
|
env->me_sync_pending += size;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user