提交 9da1eaad 编写于 作者: H handora 提交者: LINGuanRen

fix wrong ordering of update majority code

上级 91161bcb
......@@ -3155,13 +3155,13 @@ int ObLogSlidingWindow::majority_cb(
ret = OB_ERR_NULL_VALUE;
} else {
log_task = static_cast<ObLogTask *>(log_data);
if (ObLogType::OB_LOG_START_MEMBERSHIP != log_task->get_log_type()) {
try_update_max_majority_log(log_id, log_task->get_submit_timestamp());
}
if (OB_FAIL(log_task->submit_log_succ_cb(partition_key_, log_id, batch_committed, batch_first_participant))) {
CLOG_LOG(WARN, "submit log majority_cb failed", K(ret), K_(partition_key), K(log_id), K(batch_committed));
ret = OB_SUCCESS;
}
if (ObLogType::OB_LOG_START_MEMBERSHIP != log_task->get_log_type()) {
try_update_max_majority_log(log_id, log_task->get_submit_timestamp());
}
}
if (NULL != ref && OB_SUCCESS != (tmp_ret = sw_.revert(ref))) {
CLOG_LOG(ERROR, "revert failed", K_(partition_key), K(tmp_ret));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册