Skip to content

Commit ebe461a

Browse files
author
JkLondon
committed
1 parent 8cb42a1 commit ebe461a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

libmdbx/mdbx.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20314,9 +20314,8 @@ __cold int dxb_setup(MDBX_env *env, const int lck_rc, const mdbx_mode_t mode_bit
2031420314
}
2031520315

2031620316
if (env->flags & MDBX_RDONLY) {
20317-
if (filesize_before & (globals.sys_allocation_granularity - 1)) {
20318-
ERROR("filesize should be rounded-up to system allocation granularity %u",
20319-
globals.sys_allocation_granularity);
20317+
if (filesize_before & (globals.sys_pagesize - 1)) {
20318+
ERROR("filesize should be rounded-up to system page size %u", globals.sys_pagesize);
2032020319
return MDBX_WANNA_RECOVERY;
2032120320
}
2032220321
WARNING("%s", "ignore filesize mismatch in readonly-mode");

0 commit comments

Comments
 (0)