fix check_partition_exist failure code process logic.
This commit is contained in:
parent
5839aec035
commit
ac34abdc9e
@ -1134,7 +1134,7 @@ int ObLogReconfirm::reconfirm()
|
||||
max_flushed_id_ + 1);
|
||||
state_ = START_WORKING;
|
||||
if (OB_INVALID_TIMESTAMP != last_ts_ && OB_FAIL(sw_->try_update_submit_timestamp(last_ts_))) {
|
||||
CLOG_LOG(ERROR, "sw update timestamp error", K(ret), K(last_ts_));
|
||||
CLOG_LOG(ERROR, "sw update timestamp error", K(ret), K_(partition_key), K(last_ts_));
|
||||
} else {
|
||||
ret = mm_->write_start_membership(OB_LOG_START_MEMBERSHIP);
|
||||
}
|
||||
|
@ -2038,7 +2038,8 @@ bool ObLogStateMgr::is_reconfirm_role_change_or_sync_timeout_()
|
||||
if (OB_SUCCESS != (tmp_ret = partition_service_->check_partition_exist(partition_key_, is_exist))) {
|
||||
CLOG_LOG(WARN, "check_partition_exist failed", K_(partition_key), K(tmp_ret));
|
||||
}
|
||||
if (is_exist) {
|
||||
if (is_exist || (OB_SUCCESS != tmp_ret)) {
|
||||
// partition exists or check_partition_exist failed
|
||||
CLOG_LOG(ERROR,
|
||||
"is_reconfirm_role_change_or_sync_timeout_",
|
||||
K_(partition_key),
|
||||
|
Loading…
x
Reference in New Issue
Block a user