mdbx: the filesize field of mdbx_mmap_t now is not specific for Windows.

This commit is contained in:
Leonid Yuriev
2021-07-08 13:18:51 +03:00
parent 2f74f405ae
commit c30c3def8b
2 changed files with 13 additions and 16 deletions

View File

@@ -460,8 +460,8 @@ typedef struct mdbx_mmap_param {
mdbx_filehandle_t fd;
size_t limit; /* mapping length, but NOT a size of file nor DB */
size_t current; /* mapped region size, i.e. the size of file and DB */
#if defined(_WIN32) || defined(_WIN64)
uint64_t filesize /* in-process cache of a file size */;
#if defined(_WIN32) || defined(_WIN64)
HANDLE section; /* memory-mapped section handle */
#endif
} mdbx_mmap_t;