summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryuryalekseev <[email protected]>2023-02-14 16:56:23 +0300
committeryuryalekseev <[email protected]>2023-02-14 16:56:23 +0300
commitf4cb98ca7bfdaa3f9fafe8f903b0eaf951641edc (patch)
treeac1c523f9adeb75383c311611366c7fee067c684
parent4cb5e6b92c1cfdeb4ba2faf025885821c2005cfc (diff)
Unset PDiskType and BoxId on TRemoveDriveSerial.
-rw-r--r--ydb/core/mind/bscontroller/cmds_drive_status.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ydb/core/mind/bscontroller/cmds_drive_status.cpp b/ydb/core/mind/bscontroller/cmds_drive_status.cpp
index 0762acbc455..cc35357f911 100644
--- a/ydb/core/mind/bscontroller/cmds_drive_status.cpp
+++ b/ydb/core/mind/bscontroller/cmds_drive_status.cpp
@@ -183,6 +183,8 @@ namespace NKikimr::NBsController {
driveInfoMutable->PDiskId.Clear();
driveInfoMutable->LifeStage = NKikimrBlobStorage::TDriveLifeStage::REMOVED_FROM_BSC;
driveInfoMutable->Path.Clear();
+ driveInfoMutable->PDiskType = NKikimrBlobStorage::UNKNOWN_TYPE;
+ driveInfoMutable->BoxId = 0;
Fit.Boxes.insert(driveInfo->BoxId);