@@ -97,14 +97,15 @@ void RunStrategyTest(TBlobStorageGroupType type) {
97
97
98
98
std::unordered_map<TString, std::tuple<EStrategyOutcome, TString>> transitions;
99
99
100
- for (ui32 iter = 0 ; iter < 1'000'000 ; ++iter) {
100
+ TString data (1000 , ' x' );
101
+ TLogoBlobID id (1'000'000'000 , 1 , 1 , 0 , data.size (), 0 );
102
+ std::vector<TRope> parts (type.TotalPartCount ());
103
+ ErasureSplit (TBlobStorageGroupType::CrcModeNone, type, TRope (data), parts);
104
+
105
+ for (ui32 iter = 0 ; iter < 100'000 ; ++iter) {
101
106
Ctest << " iteration# " << iter << Endl;
102
107
103
108
TBlackboard blackboard (&info, &groupQueues, NKikimrBlobStorage::UserData, NKikimrBlobStorage::FastRead);
104
- TString data (1000 , ' x' );
105
- TLogoBlobID id (1'000'000'000 , 1 , 1 , 0 , data.size (), 0 );
106
- std::vector<TRope> parts (type.TotalPartCount ());
107
- ErasureSplit (TBlobStorageGroupType::CrcModeNone, type, TRope (data), parts);
108
109
blackboard.RegisterBlobForPut (id, 0 );
109
110
for (ui32 i = 0 ; i < parts.size (); ++i) {
110
111
blackboard.AddPartToPut (id, i, TRope (parts[i]));
0 commit comments