@@ -10,9 +10,8 @@ class TBlobStorageController::TTxUpdateNodeDrives
10
10
{
11
11
NKikimrBlobStorage::TEvControllerUpdateNodeDrives Record;
12
12
std::optional<TConfigState> State;
13
- std::unique_ptr<TEvBlobStorage::TEvControllerNodeServiceSetUpdate> Result;
14
13
15
- void UpdateDevicesInfo (TConfigState& state, TEvBlobStorage::TEvControllerNodeServiceSetUpdate* result ) {
14
+ void UpdateDevicesInfo (TConfigState& state) {
16
15
auto nodeId = Record.GetNodeId ();
17
16
18
17
auto createLog = [&] () {
@@ -83,9 +82,6 @@ class TBlobStorageController::TTxUpdateNodeDrives
83
82
if (pdiskInfo.LastSeenSerial != serial) {
84
83
auto *item = getMutableItem ();
85
84
item->LastSeenSerial = serial;
86
- if (serial) {
87
- Self->ReadPDisk (pdiskId, *item, result, NKikimrBlobStorage::RESTART);
88
- }
89
85
}
90
86
91
87
return true ;
@@ -164,14 +160,12 @@ class TBlobStorageController::TTxUpdateNodeDrives
164
160
bool Execute (TTransactionContext& txc, const TActorContext&) override {
165
161
const TNodeId nodeId = Record.GetNodeId ();
166
162
167
- Result = std::make_unique<TEvBlobStorage::TEvControllerNodeServiceSetUpdate>(NKikimrProto::OK, nodeId);
168
-
169
163
State.emplace (*Self, Self->HostRecords , TActivationContext::Now ());
170
164
State->CheckConsistency ();
171
165
172
166
auto updateIsSuccessful = true ;
173
167
try {
174
- UpdateDevicesInfo (*State, Result. get () );
168
+ UpdateDevicesInfo (*State);
175
169
State->CheckConsistency ();
176
170
} catch (const TExError& e) {
177
171
updateIsSuccessful = false ;
@@ -181,10 +175,6 @@ class TBlobStorageController::TTxUpdateNodeDrives
181
175
" Error during UpdateDevicesInfo after receiving TEvControllerRegisterNode" , (TExError, e.what ()));
182
176
}
183
177
184
- Result->Record .SetInstanceId (Self->InstanceId );
185
- Result->Record .SetComprehensive (false );
186
- Result->Record .SetAvailDomain (AppData ()->DomainsInfo ->GetDomain ()->DomainUid );
187
-
188
178
TString error;
189
179
if (!updateIsSuccessful || (State->Changed () && !Self->CommitConfigUpdates (*State, false , false , false , txc, &error))) {
190
180
State->Rollback ();
@@ -200,9 +190,6 @@ class TBlobStorageController::TTxUpdateNodeDrives
200
190
State->ApplyConfigUpdates ();
201
191
State.reset ();
202
192
}
203
- if (Result) {
204
- Self->SendToWarden (Record.GetNodeId (), std::move (Result), 0 );
205
- }
206
193
}
207
194
};
208
195
0 commit comments