reduce log printing in sync_log_succ
This commit is contained in:
@ -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));
|
TRANS_LOG(WARN, "sync log failed", K(ret));
|
||||||
}
|
}
|
||||||
} else {
|
} 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;
|
return ret;
|
||||||
@ -684,8 +687,10 @@ void ObMemtableCtx::sync_log_fail(const ObCallbackScope &callbacks)
|
|||||||
if (is_partial_rollbacked_() || OB_SUCCESS == ATOMIC_LOAD(&end_code_)) {
|
if (is_partial_rollbacked_() || OB_SUCCESS == ATOMIC_LOAD(&end_code_)) {
|
||||||
log_gen_.sync_log_fail(callbacks);
|
log_gen_.sync_log_fail(callbacks);
|
||||||
} else {
|
} else {
|
||||||
|
if (!callbacks.is_empty()) {
|
||||||
TRANS_LOG(INFO, "No memtable callbacks because of trans_end", K(end_code_), KPC(ctx_));
|
TRANS_LOG(INFO, "No memtable callbacks because of trans_end", K(end_code_), KPC(ctx_));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user