From 5244c1a9c2ef36e4b66b6934e0860361722cfd9b Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Mon, 12 Aug 2019 12:22:48 +0300 Subject: [PATCH] mdbx-chk: "backed-pages less filesize" isn't an error on Windows. Change-Id: Iea212a469225b0617221cdf292352eb1f896b4c6 --- src/tools/mdbx_chk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools/mdbx_chk.c b/src/tools/mdbx_chk.c index 76ffe1ab..93f28bbd 100644 --- a/src/tools/mdbx_chk.c +++ b/src/tools/mdbx_chk.c @@ -1108,11 +1108,13 @@ 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) && 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)