diff --git a/src/tools/mdbx_chk.c b/src/tools/mdbx_chk.c index 7fbc9f4e..cd61e44e 100644 --- a/src/tools/mdbx_chk.c +++ b/src/tools/mdbx_chk.c @@ -1115,14 +1115,11 @@ int main(int argc, char *argv[]) { const uint64_t dxbfile_pages = dxb_filesize / envinfo.mi_dxb_pagesize; alloc_pages = txn->mt_next_pgno; backed_pages = envinfo.mi_geo.current / envinfo.mi_dxb_pagesize; -#if !(defined(_WIN32) || defined(_WIN64)) - if ((envflags & (MDBX_EXCLUSIVE | MDBX_RDONLY)) != MDBX_RDONLY && - backed_pages != dxbfile_pages) { - print(" ! backed-pages %" PRIu64 " != file-pages %" PRIu64 "\n", + if (backed_pages > dxbfile_pages) { + print(" ! backed-pages %" PRIu64 " > file-pages %" PRIu64 "\n", backed_pages, dxbfile_pages); ++problems_meta; } -#endif /* !Windows */ if (dxbfile_pages < NUM_METAS) print(" ! file-pages %" PRIu64 " < %u\n", dxbfile_pages, NUM_METAS); if (backed_pages < NUM_METAS)