mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-06 19:14:14 +08:00
mdbx: вывод информации из mdbx_env_chk()
о boot-id в каждой мета-странице.
This commit is contained in:
parent
a67b9b9729
commit
5f274eb4c6
24
src/core.c
24
src/core.c
@ -26219,7 +26219,13 @@ __cold static void chk_verbose_meta(MDBX_chk_scope_t *const scope,
|
|||||||
&chk->envinfo.mi_bootid.current,
|
&chk->envinfo.mi_bootid.current,
|
||||||
sizeof(chk->envinfo.mi_bootid.current)) == 0;
|
sizeof(chk->envinfo.mi_bootid.current)) == 0;
|
||||||
|
|
||||||
line = chk_print(line, "meta-%u: ", num);
|
const char *status = "stay";
|
||||||
|
if (num == chk->troika.recent)
|
||||||
|
status = "head";
|
||||||
|
else if (num == TROIKA_TAIL(&chk->troika))
|
||||||
|
status = "tail";
|
||||||
|
line = chk_print(line, "meta-%u: %s, ", num, status);
|
||||||
|
|
||||||
switch (chk->envinfo.mi_meta_sign[num]) {
|
switch (chk->envinfo.mi_meta_sign[num]) {
|
||||||
case MDBX_DATASIGN_NONE:
|
case MDBX_DATASIGN_NONE:
|
||||||
line = chk_puts(line, "no-sync/legacy");
|
line = chk_puts(line, "no-sync/legacy");
|
||||||
@ -26235,14 +26241,14 @@ __cold static void chk_verbose_meta(MDBX_chk_scope_t *const scope,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
const txnid_t meta_txnid = chk->envinfo.mi_meta_txnid[num];
|
const txnid_t meta_txnid = chk->envinfo.mi_meta_txnid[num];
|
||||||
line = chk_print(line, " txn#%" PRIaTXN, meta_txnid);
|
line = chk_print(line, " txn#%" PRIaTXN ", ", meta_txnid);
|
||||||
|
if (chk->envinfo.mi_bootid.meta[num].x | chk->envinfo.mi_bootid.meta[num].y)
|
||||||
const char *status = "stay";
|
line = chk_print(line, "boot-id %" PRIx64 "-%" PRIx64 " (%s)",
|
||||||
if (num == chk->troika.recent)
|
chk->envinfo.mi_bootid.meta[num].x,
|
||||||
status = "head";
|
chk->envinfo.mi_bootid.meta[num].y,
|
||||||
else if (num == TROIKA_TAIL(&chk->troika))
|
bootid_match ? "live" : "not match");
|
||||||
status = "tail";
|
else
|
||||||
line = chk_print(line, ", %s", status);
|
line = chk_puts(line, "no boot-id");
|
||||||
|
|
||||||
if (env->me_stuck_meta >= 0) {
|
if (env->me_stuck_meta >= 0) {
|
||||||
if (num == (unsigned)env->me_stuck_meta)
|
if (num == (unsigned)env->me_stuck_meta)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user