diff --git a/src/tools/mdbx_chk.c b/src/tools/mdbx_chk.c index 8db76e6f..b044a200 100644 --- a/src/tools/mdbx_chk.c +++ b/src/tools/mdbx_chk.c @@ -1060,13 +1060,13 @@ int main(int argc, char *argv[]) { } maxkeysize = rc; - rc = mdbx_env_info(env, &envinfo, sizeof(envinfo)); + rc = mdbx_env_info2(env, txn, &envinfo, sizeof(envinfo)); if (rc) { error("mdbx_env_info failed, error %d %s\n", rc, mdbx_strerror(rc)); goto bailout; } - rc = mdbx_env_stat(env, &envstat, sizeof(envstat)); + rc = mdbx_env_stat2(env, txn, &envstat, sizeof(envstat)); if (rc) { error("mdbx_env_stat failed, error %d %s\n", rc, mdbx_strerror(rc)); goto bailout;