提交 8d51281e 编写于 作者: O obdev 提交者: wangzelin.wzl

reduce log printing in sync_log_succ

上级 c1ff5dd3
......@@ -670,7 +670,10 @@ int ObMemtableCtx::sync_log_succ(const int64_t log_ts, const ObCallbackScope &ca
TRANS_LOG(WARN, "sync log failed", K(ret));
}
} else {
TRANS_LOG(INFO, "No memtable callbacks because of trans_end", K(end_code_), KPC(ctx_));
if (!callbacks.is_empty()) {
TRANS_LOG(INFO, "No memtable callbacks because of trans_end", K(end_code_), K(log_ts),
KPC(ctx_));
}
}
return ret;
......@@ -684,7 +687,9 @@ void ObMemtableCtx::sync_log_fail(const ObCallbackScope &callbacks)
if (is_partial_rollbacked_() || OB_SUCCESS == ATOMIC_LOAD(&end_code_)) {
log_gen_.sync_log_fail(callbacks);
} else {
TRANS_LOG(INFO, "No memtable callbacks because of trans_end", K(end_code_), KPC(ctx_));
if (!callbacks.is_empty()) {
TRANS_LOG(INFO, "No memtable callbacks because of trans_end", K(end_code_), KPC(ctx_));
}
}
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册