fix the problem that the gap between triggering a rebuild and disabling voting may lead to unnecessary rebuilds

This commit is contained in:
obdev
2023-04-13 06:53:41 +00:00
committed by ob-robot
parent f699eaf0bc
commit a36c4299c1
15 changed files with 238 additions and 76 deletions

View File

@ -1136,7 +1136,7 @@ int ObLogHandler::set_region(const common::ObRegion &region)
return ret;
}
int ObLogHandler::disable_vote()
int ObLogHandler::disable_vote(const bool need_check_log_missing)
{
int ret = OB_SUCCESS;
RLockGuard guard(lock_);
@ -1145,7 +1145,7 @@ int ObLogHandler::disable_vote()
} else if (is_in_stop_state_) {
ret = OB_NOT_RUNNING;
} else {
ret = palf_handle_.disable_vote();
ret = palf_handle_.disable_vote(need_check_log_missing);
}
return ret;
}