support parse meta log for arbserver and more friendly output.

This commit is contained in:
HaHaJeff
2023-07-03 08:54:00 +00:00
committed by ob-robot
parent e7ea7fac66
commit 95524f29e0
7 changed files with 236 additions and 89 deletions

View File

@ -556,7 +556,7 @@ void ObTxRedoLog::reset_mutator_buf()
// unused_encrypt_info can work. This may be perfected in the future.
int ObTxRedoLog::ob_admin_dump(memtable::ObMemtableMutatorIterator *iter_ptr,
ObAdminMutatorStringArg &arg,
palf::block_id_t block_id,
const char *block_name,
palf::LSN lsn,
int64_t tx_id,
SCN scn,
@ -592,8 +592,8 @@ int ObTxRedoLog::ob_admin_dump(memtable::ObMemtableMutatorIterator *iter_ptr,
has_output = true;
} else {
if (!has_dumped_tx_id) {
databuff_printf(arg.buf_, arg.buf_len_, arg.pos_, "{BlockID: %ld; LSN:%ld, TxID:%ld; SCN:%s",
block_id, lsn.val_, tx_id, to_cstring(scn));
databuff_printf(arg.buf_, arg.buf_len_, arg.pos_, "{BlockID: %s; LSN:%ld, TxID:%ld; SCN:%s",
block_name, lsn.val_, tx_id, to_cstring(scn));
}
databuff_printf(arg.buf_, arg.buf_len_, arg.pos_,
"<TxRedoLog>: {TxCtxInfo: {%s}; MutatorMeta: {%s}; MutatorRows: {",

View File

@ -252,7 +252,7 @@ public:
//for ob_admin dump self
int ob_admin_dump(memtable::ObMemtableMutatorIterator *iter_ptr,
share::ObAdminMutatorStringArg &arg,
palf::block_id_t block_id,
const char *block_name,
palf::LSN lsn,
int64_t tx_id,
share::SCN scn,