[scn] rename log_ts to scn

This commit is contained in:
obdev
2022-11-28 02:29:00 +00:00
committed by ob-robot
parent 89c7502360
commit 59db61e110
316 changed files with 219033 additions and 6033 deletions

View File

@ -687,7 +687,7 @@ int ObMemtableCtx::sync_log_succ(const palf::SCN scn, const ObCallbackScope &cal
{
int ret = OB_SUCCESS;
if (OB_SUCCESS == ATOMIC_LOAD(&end_code_)) {
if (is_partial_rollbacked_() || OB_SUCCESS == ATOMIC_LOAD(&end_code_)) {
if (OB_FAIL(log_gen_.sync_log_succ(scn, callbacks))) {
TRANS_LOG(WARN, "sync log failed", K(ret));
}
@ -703,7 +703,7 @@ void ObMemtableCtx::sync_log_fail(const ObCallbackScope &callbacks)
if (!callbacks.is_empty()) {
set_partial_rollbacked_();
}
if (OB_SUCCESS == ATOMIC_LOAD(&end_code_)) {
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_));