Skip to content

Commit

Permalink
Cherry pick 3.2.0 (0714) (#4420)
Browse files Browse the repository at this point in the history
Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com>

Co-authored-by: Doodle <13706157+critical27@users.noreply.github.com>
  • Loading branch information
Sophie-Xie and critical27 authored Jul 14, 2022
1 parent 324d134 commit ef6d6a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meta/processors/job/LeaderBalanceJobExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ ErrorOr<nebula::cpp2::ErrorCode, bool> 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<kvstore::KVIterator> iter;
auto retCode = kvstore_->prefix(kDefaultSpaceId, kDefaultPartId, prefix, &iter);
Expand Down

0 comments on commit ef6d6a0

Please sign in to comment.