Skip to content

Commit 1c40d48

Browse files
authored
Fix the loop of locking and releasing partitions (ydb-platform#8364)
1 parent 7ea37c4 commit 1c40d48

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

ydb/core/persqueue/read_balancer__balancing.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1873,12 +1873,6 @@ bool LowLoadSessionComparator::operator()(const TSession* lhs, const TSession* r
18731873
if (lhs->ActiveFamilyCount != rhs->ActiveFamilyCount) {
18741874
return lhs->ActiveFamilyCount < rhs->ActiveFamilyCount;
18751875
}
1876-
if (lhs->ActivePartitionCount != rhs->ActivePartitionCount) {
1877-
return lhs->ActivePartitionCount < rhs->ActivePartitionCount;
1878-
}
1879-
if (lhs->InactivePartitionCount != rhs->InactivePartitionCount) {
1880-
return lhs->InactivePartitionCount < rhs->InactivePartitionCount;
1881-
}
18821876
if (lhs->Partitions.size() != rhs->Partitions.size()) {
18831877
return lhs->Partitions.size() < rhs->Partitions.size();
18841878
}

0 commit comments

Comments
 (0)