Skip to content

Commit ca97693

Browse files
authored
Fixed test for heap iterator (#8473)
1 parent b60ad9b commit ca97693

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ydb/core/blobstorage/vdisk/hulldb/base/hullds_heap_it_ut.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ namespace NKikimr {
8585
}
8686

8787
void GenRandLogoBlobOrderedSsts(ui32 maxPlus, ui32 maxRec, ui32 maxSsts, ui32 step = 0) {
88-
LogoBlobOrderedSsts.push_back(GenerateOrderedSsts(step, TAppData::RandomProvider->GenRand64() % maxPlus,
89-
TAppData::RandomProvider->GenRand64() % maxRec,
90-
TAppData::RandomProvider->GenRand64() % maxSsts));
88+
LogoBlobOrderedSsts.push_back(GenerateOrderedSsts(step, TAppData::RandomProvider->GenRand64() % maxPlus + 1,
89+
TAppData::RandomProvider->GenRand64() % maxRec + 1,
90+
TAppData::RandomProvider->GenRand64() % maxSsts + 1));
9191
}
9292

9393
std::shared_ptr<TFreshAppendix> CreateAppendix(const TVector<int> &v, ui64 tabletId = 0, ui32 generation = 0,
@@ -334,7 +334,7 @@ namespace NKikimr {
334334
sampler.GenRandLogoBlobOrderedSsts(50, 100, 100);
335335
auto logoBlobOrderedSsts = sampler.PrepareLogoBlobOrderedSsts();
336336
TLevelSlice<TKeyLogoBlob, TMemRecLogoBlob>::TBackwardIterator levelSliceIterator(hullCtx, logoBlobOrderedSsts);
337-
BackwardIterationBenchmark(levelSliceIterator, "LevelSliceBackwardIterator", CreateKey(500001));
337+
BackwardIterationBenchmark(levelSliceIterator, "LevelSliceBackwardIterator", CreateKey(1'000'000));
338338
}
339339
}
340340

0 commit comments

Comments
 (0)