mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-30 22:47:16 +08:00
mdbx: исправление опечатки 0x%u
в логировании.
This commit is contained in:
parent
485d6d1f50
commit
a430b3b288
@ -162,8 +162,8 @@ __hot int coherency_check_head(MDBX_txn *txn, const meta_ptr_t head,
|
||||
if ((txn->dbs[FREE_DBI].flags & DB_PERSISTENT_FLAGS) != MDBX_INTEGERKEY ||
|
||||
unaligned_peek_u64(4, &head.ptr_c->magic_and_version) ==
|
||||
MDBX_DATA_MAGIC) {
|
||||
ERROR("unexpected/invalid db-flags 0x%u for GC/FreeDB",
|
||||
txn->dbs[FREE_DBI].flags);
|
||||
ERROR("unexpected/invalid db-flags 0x%x for %s", txn->dbs[FREE_DBI].flags,
|
||||
"GC/FreeDB");
|
||||
return MDBX_INCOMPATIBLE;
|
||||
}
|
||||
txn->dbs[FREE_DBI].flags &= DB_PERSISTENT_FLAGS;
|
||||
|
@ -628,8 +628,8 @@ __cold int dxb_setup(MDBX_env *env, const int lck_rc,
|
||||
|
||||
if (unlikely((header.trees.gc.flags & DB_PERSISTENT_FLAGS) !=
|
||||
MDBX_INTEGERKEY)) {
|
||||
ERROR("unexpected/invalid db-flags 0x%u for GC/FreeDB",
|
||||
header.trees.gc.flags);
|
||||
ERROR("unexpected/invalid db-flags 0x%x for %s", header.trees.gc.flags,
|
||||
"GC/FreeDB");
|
||||
return MDBX_INCOMPATIBLE;
|
||||
}
|
||||
env->dbs_flags[FREE_DBI] = DB_VALID | MDBX_INTEGERKEY;
|
||||
|
@ -544,13 +544,13 @@ __cold int meta_validate(MDBX_env *env, meta_t *const meta,
|
||||
if (unlikely(meta->trees.gc.flags != MDBX_INTEGERKEY) &&
|
||||
((meta->trees.gc.flags & DB_PERSISTENT_FLAGS) != MDBX_INTEGERKEY ||
|
||||
magic_and_version == MDBX_DATA_MAGIC)) {
|
||||
WARNING("meta[%u] has invalid %s flags 0x%u, skip it", meta_number,
|
||||
WARNING("meta[%u] has invalid %s flags 0x%x, skip it", meta_number,
|
||||
"GC/FreeDB", meta->trees.gc.flags);
|
||||
return MDBX_INCOMPATIBLE;
|
||||
}
|
||||
|
||||
if (unlikely(!check_sdb_flags(meta->trees.main.flags))) {
|
||||
WARNING("meta[%u] has invalid %s flags 0x%u, skip it", meta_number,
|
||||
WARNING("meta[%u] has invalid %s flags 0x%x, skip it", meta_number,
|
||||
"MainDB", meta->trees.main.flags);
|
||||
return MDBX_INCOMPATIBLE;
|
||||
}
|
||||
|
@ -1222,8 +1222,8 @@ int txn_renew(MDBX_txn *txn, unsigned flags) {
|
||||
}
|
||||
|
||||
if (unlikely(txn->dbs[FREE_DBI].flags != MDBX_INTEGERKEY)) {
|
||||
ERROR("unexpected/invalid db-flags 0x%u for GC/FreeDB",
|
||||
txn->dbs[FREE_DBI].flags);
|
||||
ERROR("unexpected/invalid db-flags 0x%x for %s", txn->dbs[FREE_DBI].flags,
|
||||
"GC/FreeDB");
|
||||
rc = MDBX_INCOMPATIBLE;
|
||||
goto bailout;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user