mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 17:44:13 +08:00
mdbx: уточнение txn_space_dirty
в соответствии с обновленным учетом грязных страниц.
This commit is contained in:
parent
4f1f9141f4
commit
771c85a880
@ -8811,7 +8811,9 @@ int mdbx_txn_info(const MDBX_txn *txn, MDBX_txn_info *info, bool scan_rlt) {
|
|||||||
: MDBX_PNL_GETSIZE(txn->tw.retired_pages));
|
: MDBX_PNL_GETSIZE(txn->tw.retired_pages));
|
||||||
info->txn_space_leftover = pgno2bytes(env, txn->tw.dirtyroom);
|
info->txn_space_leftover = pgno2bytes(env, txn->tw.dirtyroom);
|
||||||
info->txn_space_dirty =
|
info->txn_space_dirty =
|
||||||
pgno2bytes(env, txn->mt_env->me_options.dp_limit - txn->tw.dirtyroom);
|
txn->tw.dirtylist
|
||||||
|
? pgno2bytes(env, txn->tw.dirtylist->pages_including_loose)
|
||||||
|
: 0;
|
||||||
info->txn_reader_lag = INT64_MAX;
|
info->txn_reader_lag = INT64_MAX;
|
||||||
MDBX_lockinfo *const lck = env->me_lck_mmap.lck;
|
MDBX_lockinfo *const lck = env->me_lck_mmap.lck;
|
||||||
if (scan_rlt && lck) {
|
if (scan_rlt && lck) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user