diff --git a/src/meta/processors/job/LeaderBalanceJobExecutor.cpp b/src/meta/processors/job/LeaderBalanceJobExecutor.cpp index c42b65e94f8..99e25f6a63e 100644 --- a/src/meta/processors/job/LeaderBalanceJobExecutor.cpp +++ b/src/meta/processors/job/LeaderBalanceJobExecutor.cpp @@ -44,7 +44,7 @@ ErrorOr LeaderBalanceJobExecutor::getHostParts(Gr bool dependentOnZone, HostParts& hostParts, int32_t& totalParts) { - folly::SharedMutex::ReadHolder holder(LockUtils::lock()); + // has been locked ouside const auto& prefix = MetaKeyUtils::partPrefix(spaceId); std::unique_ptr iter; auto retCode = kvstore_->prefix(kDefaultSpaceId, kDefaultPartId, prefix, &iter);