skip sanity check of log sync on memctx if forcedly killed
This commit is contained in:
@ -122,6 +122,10 @@ void ObMemtableCtx::reset()
|
|||||||
TRANS_LOG_RET(ERROR, OB_ERR_UNEXPECTED, "txn unsubmitted cnt not zero", K(*this), K(unsubmitted_cnt_));
|
TRANS_LOG_RET(ERROR, OB_ERR_UNEXPECTED, "txn unsubmitted cnt not zero", K(*this), K(unsubmitted_cnt_));
|
||||||
ob_abort();
|
ob_abort();
|
||||||
}
|
}
|
||||||
|
if (OB_TRANS_KILLED != end_code_) {
|
||||||
|
// _NOTE_: skip when txn was forcedly killed
|
||||||
|
// if txn killed forcedly, callbacks of log unsynced will not been processed
|
||||||
|
// after log sync succeed
|
||||||
const int64_t fill = log_gen_.get_redo_filled_count();
|
const int64_t fill = log_gen_.get_redo_filled_count();
|
||||||
const int64_t sync_succ = log_gen_.get_redo_sync_succ_count();
|
const int64_t sync_succ = log_gen_.get_redo_sync_succ_count();
|
||||||
const int64_t sync_fail = log_gen_.get_redo_sync_fail_count();
|
const int64_t sync_fail = log_gen_.get_redo_sync_fail_count();
|
||||||
@ -130,6 +134,7 @@ void ObMemtableCtx::reset()
|
|||||||
K(fill), K(sync_succ), K(sync_fail));
|
K(fill), K(sync_succ), K(sync_fail));
|
||||||
ob_abort();
|
ob_abort();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
is_inited_ = false;
|
is_inited_ = false;
|
||||||
callback_free_count_ = 0;
|
callback_free_count_ = 0;
|
||||||
callback_alloc_count_ = 0;
|
callback_alloc_count_ = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user