mirror of
https://gitflic.ru/project/erthink/libmdbx.git
synced 2025-01-10 18:27:13 +00:00
mdbx: исправление регресса в mdbx_env_stat_ex()
.
This commit is contained in:
parent
9481c0e5c4
commit
1566a0006c
@ -166,6 +166,8 @@ __cold static void stat_add(const tree_t *db, MDBX_stat *const st,
|
|||||||
}
|
}
|
||||||
|
|
||||||
__cold static int stat_acc(const MDBX_txn *txn, MDBX_stat *st, size_t bytes) {
|
__cold static int stat_acc(const MDBX_txn *txn, MDBX_stat *st, size_t bytes) {
|
||||||
|
memset(st, 0, bytes);
|
||||||
|
|
||||||
int err = check_txn(txn, MDBX_TXN_BLOCKED);
|
int err = check_txn(txn, MDBX_TXN_BLOCKED);
|
||||||
if (unlikely(err != MDBX_SUCCESS))
|
if (unlikely(err != MDBX_SUCCESS))
|
||||||
return err;
|
return err;
|
||||||
|
Loading…
Reference in New Issue
Block a user