Skip to content

Commit

Permalink
Fix integer overflow in TTimeSliceLogic::DoCalcWeight (#7606)
Browse files Browse the repository at this point in the history
  • Loading branch information
fexolm authored Aug 9, 2024
1 parent f71909a commit c59279a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ NKikimr::NOlap::NStorageOptimizer::NSBuckets::TCompactionTaskResult TTimeSliceLo

NKikimr::NOlap::NStorageOptimizer::NSBuckets::TCalcWeightResult TTimeSliceLogic::DoCalcWeight(const TInstant /*now*/, const TBucketInfo& bucket) const {
ui64 size = 0;
ui32 count = 0;
ui64 count = 0;
for (auto&& [maxInstant, portions] : bucket.GetSnapshotPortions()) {
for (auto&& [_, p] : portions) {
if (p.GetTotalBlobBytes() > compactedDetector) {
Expand Down

0 comments on commit c59279a

Please sign in to comment.