Skip to content

Commit b97df1f

Browse files
alexvruuzhastik
authored andcommitted
Add feature flag to enable drive serial numbers discovery (merge from main #11183) (#11255)
1 parent d911342 commit b97df1f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ydb/core/blobstorage/nodewarden/node_warden_impl.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ void TNodeWarden::RemoveDrivesWithBadSerialsAndReport(TVector<NPDisk::TDriveData
9090
}
9191

9292
TVector<NPDisk::TDriveData> TNodeWarden::ListLocalDrives() {
93+
if (!AppData()->FeatureFlags.GetEnableDriveSerialsDiscovery()) {
94+
return {};
95+
}
96+
9397
TStringStream details;
9498
TVector<NPDisk::TDriveData> drives = ListDevicesWithPartlabel(details);
9599

ydb/core/protos/feature_flags.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,5 @@ message TFeatureFlags {
156156
optional bool EnableOlapCompression = 142 [default = false];
157157
optional bool EnableExternalDataSourcesOnServerless = 143 [default = true];
158158
optional bool EnableSparsedColumns = 144 [default = false];
159+
optional bool EnableDriveSerialsDiscovery = 152 [default = false];
159160
}

0 commit comments

Comments
 (0)