mdbx-chk: "backed-pages less filesize" isn't an error on Windows.

Change-Id: Iea212a469225b0617221cdf292352eb1f896b4c6
This commit is contained in:
Leonid Yuriev 2019-08-12 12:22:48 +03:00
parent cfaed9d761
commit 5244c1a9c2

View File

@ -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)