[to #49019445] add exception log
This commit is contained in:
@ -680,11 +680,16 @@ int ObMemtableCtx::sync_log_succ(const SCN scn, const ObCallbackScope &callbacks
|
||||
|
||||
void ObMemtableCtx::sync_log_fail(const ObCallbackScope &callbacks)
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
if (!callbacks.is_empty()) {
|
||||
set_partial_rollbacked();
|
||||
}
|
||||
if (OB_SUCCESS == ATOMIC_LOAD(&end_code_)) {
|
||||
log_gen_.sync_log_fail(callbacks);
|
||||
if (OB_FAIL(reuse_log_generator_())) {
|
||||
TRANS_LOG(ERROR, "fail to reset log generator", K(ret));
|
||||
} else {
|
||||
log_gen_.sync_log_fail(callbacks);
|
||||
}
|
||||
} else {
|
||||
if (!callbacks.is_empty()) {
|
||||
TRANS_LOG(INFO, "No memtable callbacks because of trans_end", K(end_code_), KPC(ctx_));
|
||||
|
||||
Reference in New Issue
Block a user