From ef6d6a0d244778a50f83e44475799d479d530425 Mon Sep 17 00:00:00 2001 From: Sophie <84560950+Sophie-Xie@users.noreply.github.com> Date: Thu, 14 Jul 2022 15:13:31 +0800 Subject: [PATCH] Cherry pick 3.2.0 (0714) (#4420) Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com> Co-authored-by: Doodle <13706157+critical27@users.noreply.github.com> --- src/meta/processors/job/LeaderBalanceJobExecutor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);