@@ -87,7 +87,7 @@ bool TBlobState::Restore(const TBlobStorageGroupInfo &info) {
87
87
}
88
88
89
89
void TBlobState::AddResponseData (const TBlobStorageGroupInfo &info, const TLogoBlobID &id, ui32 orderNumber,
90
- ui32 shift, TRope&& data, bool keep, bool doNotKeep ) {
90
+ ui32 shift, TRope&& data) {
91
91
// Add actual data to Parts
92
92
Y_ABORT_UNLESS (id.PartId () != 0 );
93
93
const ui32 partIdx = id.PartId () - 1 ;
@@ -112,9 +112,6 @@ void TBlobState::AddResponseData(const TBlobStorageGroupInfo &info, const TLogoB
112
112
TIntervalVec<i32> responseInterval (shift, shift + dataSize);
113
113
diskPart.Requested .Subtract (responseInterval);
114
114
}
115
-
116
- Keep |= keep;
117
- DoNotKeep |= doNotKeep;
118
115
}
119
116
120
117
void TBlobState::AddNoDataResponse (const TBlobStorageGroupInfo &info, const TLogoBlobID &id, ui32 orderNumber) {
@@ -164,8 +161,7 @@ void TBlobState::AddErrorResponse(const TBlobStorageGroupInfo &info, const TLogo
164
161
diskPart.Requested .Clear ();
165
162
}
166
163
167
- void TBlobState::AddNotYetResponse (const TBlobStorageGroupInfo &info, const TLogoBlobID &id, ui32 orderNumber,
168
- bool keep, bool doNotKeep) {
164
+ void TBlobState::AddNotYetResponse (const TBlobStorageGroupInfo &info, const TLogoBlobID &id, ui32 orderNumber) {
169
165
Y_ABORT_UNLESS (id.PartId () != 0 );
170
166
const ui32 partIdx = id.PartId () - 1 ;
171
167
IsChanged = true ;
@@ -179,9 +175,6 @@ void TBlobState::AddNotYetResponse(const TBlobStorageGroupInfo &info, const TLog
179
175
TDiskPart &diskPart = disk.DiskParts [partIdx];
180
176
diskPart.Situation = ESituation::Lost;
181
177
diskPart.Requested .Clear ();
182
-
183
- Keep |= keep;
184
- DoNotKeep |= doNotKeep;
185
178
}
186
179
187
180
ui64 TBlobState::GetPredictedDelayNs (const TBlobStorageGroupInfo &info, TGroupQueues &groupQueues,
@@ -377,11 +370,11 @@ void TBlackboard::AddPutOkResponse(const TLogoBlobID &id, ui32 orderNumber) {
377
370
state.AddPutOkResponse (*Info, id, orderNumber);
378
371
}
379
372
380
- void TBlackboard::AddResponseData (const TLogoBlobID &id, ui32 orderNumber, ui32 shift, TRope&& data, bool keep, bool doNotKeep ) {
373
+ void TBlackboard::AddResponseData (const TLogoBlobID &id, ui32 orderNumber, ui32 shift, TRope&& data) {
381
374
Y_ABORT_UNLESS (bool (id));
382
375
Y_ABORT_UNLESS (id.PartId () != 0 );
383
376
TBlobState &state = GetState (id);
384
- state.AddResponseData (*Info, id, orderNumber, shift, std::move (data), keep, doNotKeep );
377
+ state.AddResponseData (*Info, id, orderNumber, shift, std::move (data));
385
378
}
386
379
387
380
void TBlackboard::AddNoDataResponse (const TLogoBlobID &id, ui32 orderNumber) {
@@ -391,11 +384,11 @@ void TBlackboard::AddNoDataResponse(const TLogoBlobID &id, ui32 orderNumber) {
391
384
state.AddNoDataResponse (*Info, id, orderNumber);
392
385
}
393
386
394
- void TBlackboard::AddNotYetResponse (const TLogoBlobID &id, ui32 orderNumber, bool keep, bool doNotKeep ) {
387
+ void TBlackboard::AddNotYetResponse (const TLogoBlobID &id, ui32 orderNumber) {
395
388
Y_ABORT_UNLESS (bool (id));
396
389
Y_ABORT_UNLESS (id.PartId () != 0 );
397
390
TBlobState &state = GetState (id);
398
- state.AddNotYetResponse (*Info, id, orderNumber, keep, doNotKeep );
391
+ state.AddNotYetResponse (*Info, id, orderNumber);
399
392
}
400
393
401
394
void TBlackboard::AddErrorResponse (const TLogoBlobID &id, ui32 orderNumber) {
0 commit comments