diff --git a/refactor.sh b/refactor.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9bf588e2f88457fdf73ac7361ef1d596fb81453 --- /dev/null +++ b/refactor.sh @@ -0,0 +1 @@ +#!/bin/bash diff --git a/src/storage/ob_partition_service.cpp b/src/storage/ob_partition_service.cpp index f500dcf9a17369ecbe4f837b6497cca7f4d1c816..86e3f7981d70904a5fdac1a854a97885a695c4d2 100644 --- a/src/storage/ob_partition_service.cpp +++ b/src/storage/ob_partition_service.cpp @@ -10358,6 +10358,7 @@ int ObPartitionService::check_can_start_service( ObPartitionKey tmp_key; int64_t timestamp = 0; bool is_all_unreachable_partition = true; + can_start_service = true; if (OB_UNLIKELY(!is_inited_)) { ret = OB_NOT_INIT; @@ -10365,6 +10366,9 @@ int ObPartitionService::check_can_start_service( } else if (!is_running_) { ret = OB_NOT_RUNNING; TRANS_LOG(WARN, "partition service not running", K(ret)); + } else if (is_service_started()) { + // already start service + can_start_service = true; } else if (is_empty()) { // observer is starting... can_start_service = true;