mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-20 05:38:20 +08:00
mdbx-chk: "backed-pages less filesize" isn't an error on Windows.
Change-Id: Iea212a469225b0617221cdf292352eb1f896b4c6
This commit is contained in:
parent
cfaed9d761
commit
5244c1a9c2
@ -1108,11 +1108,13 @@ int main(int argc, char *argv[]) {
|
|||||||
const uint64_t dxbfile_pages = dxb_filesize / envinfo.mi_dxb_pagesize;
|
const uint64_t dxbfile_pages = dxb_filesize / envinfo.mi_dxb_pagesize;
|
||||||
alloc_pages = txn->mt_next_pgno;
|
alloc_pages = txn->mt_next_pgno;
|
||||||
backed_pages = envinfo.mi_geo.current / envinfo.mi_dxb_pagesize;
|
backed_pages = envinfo.mi_geo.current / envinfo.mi_dxb_pagesize;
|
||||||
|
#if !(defined(_WIN32) || defined(_WIN64))
|
||||||
if ((envflags & MDBX_EXCLUSIVE) && backed_pages != dxbfile_pages) {
|
if ((envflags & MDBX_EXCLUSIVE) && backed_pages != dxbfile_pages) {
|
||||||
print(" ! backed-pages %" PRIu64 " != file-pages %" PRIu64 "\n",
|
print(" ! backed-pages %" PRIu64 " != file-pages %" PRIu64 "\n",
|
||||||
backed_pages, dxbfile_pages);
|
backed_pages, dxbfile_pages);
|
||||||
++problems_meta;
|
++problems_meta;
|
||||||
}
|
}
|
||||||
|
#endif /* !Windows */
|
||||||
if (dxbfile_pages < NUM_METAS)
|
if (dxbfile_pages < NUM_METAS)
|
||||||
print(" ! file-pages %" PRIu64 " < %u\n", dxbfile_pages, NUM_METAS);
|
print(" ! file-pages %" PRIu64 " < %u\n", dxbfile_pages, NUM_METAS);
|
||||||
if (backed_pages < NUM_METAS)
|
if (backed_pages < NUM_METAS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user