allow weak read timestamp delay in 30s during the restart process

This commit is contained in:
xs0
2021-09-22 16:38:06 +08:00
committed by wangzelin.wzl
parent 77b7c6140f
commit b276491a6c

View File

@ -10573,7 +10573,7 @@ int ObPartitionService::check_can_start_service(
is_all_unreachable_partition = false;
// if the partition is more than 10s behind, the server cannot provide
// external services during the restart process
if (timestamp <= ObTimeUtility::current_time() - 10 * 1000 * 1000) {
if (timestamp <= ObTimeUtility::current_time() - 30 * 1000 * 1000) {
can_start_service = false;
}
if (timestamp < tmp_safe_weak_read_snapshot) {