acquire_callback_list CAS parallel_stat_ failed should not report an error

This commit is contained in:
chinaxing 2024-05-21 05:49:18 +00:00 committed by ob-robot
parent b25f2bcf3e
commit 2c9988e4f7

View File

@ -1323,9 +1323,7 @@ int ObTransCallbackMgr::acquire_callback_list(const bool new_epoch, const bool n
ATOMIC_STORE(&parallel_stat_, PARALLEL_STMT);
}
} else if (tid == (stat >> 32)) { // same thread nested, no parallel
if (!ATOMIC_BCAS(&parallel_stat_, stat, stat + 1)) {
TRANS_LOG_RET(ERROR, OB_ERR_UNEXPECTED, "Unexpected status", K(this), K(tid_), K(ref_cnt_), K(tid));
}
ATOMIC_BCAS(&parallel_stat_, stat, stat + 1);
} else { // has parallel
//
ATOMIC_STORE(&parallel_stat_, PARALLEL_STMT);