Skip to content

Commit 0866124

Browse files
committed
YT-16908: Add reserve to BuildMaxProgress
commit_hash:8779d8749342ee8bacbe1ece3c5e6c30e3079eb4
1 parent ed00d77 commit 0866124

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

yt/yt/client/chaos_client/replication_card.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,7 @@ TReplicationProgress BuildMaxProgress(
752752
}
753753

754754
TReplicationProgress result;
755+
result.Segments.reserve(progress.Segments.size() + other.Segments.size());
755756

756757
auto progressIt = progress.Segments.begin();
757758
auto otherIt = other.Segments.begin();

0 commit comments

Comments
 (0)