diff options
author | mregrock <mregrock@ydb.tech> | 2024-08-30 10:34:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-30 10:34:36 +0300 |
commit | ca97693ab7ecd6d01f749f70b71a49c8de90bc3b (patch) | |
tree | c36344827c2ce0258fc52b8431b2d7c836a75054 | |
parent | b60ad9b3d5c9d31d8e796a0b680cdac51314571b (diff) | |
download | ydb-ca97693ab7ecd6d01f749f70b71a49c8de90bc3b.tar.gz |
Fixed test for heap iterator (#8473)
-rw-r--r-- | ydb/core/blobstorage/vdisk/hulldb/base/hullds_heap_it_ut.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ydb/core/blobstorage/vdisk/hulldb/base/hullds_heap_it_ut.cpp b/ydb/core/blobstorage/vdisk/hulldb/base/hullds_heap_it_ut.cpp index f016e4259b..a30e092c3c 100644 --- a/ydb/core/blobstorage/vdisk/hulldb/base/hullds_heap_it_ut.cpp +++ b/ydb/core/blobstorage/vdisk/hulldb/base/hullds_heap_it_ut.cpp @@ -85,9 +85,9 @@ namespace NKikimr { } void GenRandLogoBlobOrderedSsts(ui32 maxPlus, ui32 maxRec, ui32 maxSsts, ui32 step = 0) { - LogoBlobOrderedSsts.push_back(GenerateOrderedSsts(step, TAppData::RandomProvider->GenRand64() % maxPlus, - TAppData::RandomProvider->GenRand64() % maxRec, - TAppData::RandomProvider->GenRand64() % maxSsts)); + LogoBlobOrderedSsts.push_back(GenerateOrderedSsts(step, TAppData::RandomProvider->GenRand64() % maxPlus + 1, + TAppData::RandomProvider->GenRand64() % maxRec + 1, + TAppData::RandomProvider->GenRand64() % maxSsts + 1)); } std::shared_ptr<TFreshAppendix> CreateAppendix(const TVector<int> &v, ui64 tabletId = 0, ui32 generation = 0, @@ -334,7 +334,7 @@ namespace NKikimr { sampler.GenRandLogoBlobOrderedSsts(50, 100, 100); auto logoBlobOrderedSsts = sampler.PrepareLogoBlobOrderedSsts(); TLevelSlice<TKeyLogoBlob, TMemRecLogoBlob>::TBackwardIterator levelSliceIterator(hullCtx, logoBlobOrderedSsts); - BackwardIterationBenchmark(levelSliceIterator, "LevelSliceBackwardIterator", CreateKey(500001)); + BackwardIterationBenchmark(levelSliceIterator, "LevelSliceBackwardIterator", CreateKey(1'000'000)); } } |