mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 17:14:12 +08:00
mdbx: minor refine setup_dxb() logging.
Change-Id: I985ded5fce6d829563591d9b5ddb5b172100e43d
This commit is contained in:
parent
081603e6bc
commit
f5d75a85b0
@ -7606,7 +7606,7 @@ static int __cold mdbx_setup_dxb(MDBX_env *env, const int lck_rc) {
|
|||||||
mdbx_error("filesize should be rounded-up to system page");
|
mdbx_error("filesize should be rounded-up to system page");
|
||||||
return MDBX_WANNA_RECOVERY;
|
return MDBX_WANNA_RECOVERY;
|
||||||
}
|
}
|
||||||
mdbx_notice("ignore filesize mismatch in readonly-mode");
|
mdbx_warning("ignore filesize mismatch in readonly-mode");
|
||||||
} else {
|
} else {
|
||||||
mdbx_verbose("resize datafile to %" PRIuSIZE " bytes, %" PRIaPGNO
|
mdbx_verbose("resize datafile to %" PRIuSIZE " bytes, %" PRIaPGNO
|
||||||
" pages",
|
" pages",
|
||||||
@ -7656,9 +7656,9 @@ static int __cold mdbx_setup_dxb(MDBX_env *env, const int lck_rc) {
|
|||||||
if (lck_rc == /* lck exclusive */ MDBX_RESULT_TRUE) {
|
if (lck_rc == /* lck exclusive */ MDBX_RESULT_TRUE) {
|
||||||
mdbx_assert(env, META_IS_STEADY(&meta) && !META_IS_STEADY(head));
|
mdbx_assert(env, META_IS_STEADY(&meta) && !META_IS_STEADY(head));
|
||||||
if (env->me_flags & MDBX_RDONLY) {
|
if (env->me_flags & MDBX_RDONLY) {
|
||||||
mdbx_error("rollback needed: (from head %" PRIaTXN
|
mdbx_warning("rollback needed: (from head %" PRIaTXN
|
||||||
" to steady %" PRIaTXN "), but unable in read-only mode",
|
" to steady %" PRIaTXN "), but unable in read-only mode",
|
||||||
head_txnid, meta.mm_txnid_a.inconsistent);
|
head_txnid, meta.mm_txnid_a.inconsistent);
|
||||||
return MDBX_WANNA_RECOVERY /* LY: could not recovery/rollback */;
|
return MDBX_WANNA_RECOVERY /* LY: could not recovery/rollback */;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -7739,8 +7739,8 @@ static int __cold mdbx_setup_dxb(MDBX_env *env, const int lck_rc) {
|
|||||||
if (filesize_after_mmap % env->me_os_psize ||
|
if (filesize_after_mmap % env->me_os_psize ||
|
||||||
filesize_after_mmap > env->me_dbgeo.upper ||
|
filesize_after_mmap > env->me_dbgeo.upper ||
|
||||||
filesize_after_mmap < used_bytes) {
|
filesize_after_mmap < used_bytes) {
|
||||||
mdbx_verbose("unacceptable/unexpected datafile size %" PRIu64,
|
mdbx_error("unacceptable/unexpected datafile size %" PRIu64,
|
||||||
filesize_after_mmap);
|
filesize_after_mmap);
|
||||||
return MDBX_PROBLEM;
|
return MDBX_PROBLEM;
|
||||||
}
|
}
|
||||||
if ((env->me_flags & MDBX_RDONLY) == 0) {
|
if ((env->me_flags & MDBX_RDONLY) == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user