mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 01:54:13 +08:00
mdbx-tools: print warning about Windows system limitation.
Change-Id: I8a7765bfe604dc2a4016d3e27622d41f93f06b04
This commit is contained in:
parent
c79879f290
commit
7abd625c05
@ -1172,6 +1172,14 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
printf(", %" PRIu64 " pages\n",
|
||||
envinfo.mi_geo.current / envinfo.mi_dxb_pagesize);
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
if (envinfo.mi_geo.shrink && envinfo.mi_geo.current != envinfo.mi_geo.upper)
|
||||
print(" WARNING: Due Windows system limitations a "
|
||||
"file couldn't\n be truncated while database "
|
||||
"is opened. So, the size of\n database file "
|
||||
"may by large than the database itself,\n "
|
||||
"until it will be closed or reopened in read-write mode.\n");
|
||||
#endif
|
||||
print(" - transactions: recent %" PRIu64 ", latter reader %" PRIu64
|
||||
", lag %" PRIi64 "\n",
|
||||
envinfo.mi_recent_txnid, envinfo.mi_latter_reader_txnid,
|
||||
|
@ -216,6 +216,14 @@ int main(int argc, char *argv[]) {
|
||||
mei.mi_mapsize, mei.mi_mapsize / mst.ms_psize);
|
||||
printf(" Current datafile: %" PRIu64 " bytes, %" PRIu64 " pages\n",
|
||||
mei.mi_geo.current, mei.mi_geo.current / mst.ms_psize);
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
if (mei.mi_geo.shrink && mei.mi_geo.current != mei.mi_geo.upper)
|
||||
printf(" WARNING: Due Windows system limitations a "
|
||||
"file couldn't\n be truncated while database "
|
||||
"is opened. So, the size of\n database file "
|
||||
"may by large than the database itself,\n "
|
||||
"until it will be closed or reopened in read-write mode.\n");
|
||||
#endif
|
||||
} else {
|
||||
printf(" Fixed datafile: %" PRIu64 " bytes, %" PRIu64 " pages\n",
|
||||
mei.mi_geo.current, mei.mi_geo.current / mst.ms_psize);
|
||||
|
Loading…
x
Reference in New Issue
Block a user