@@ -72,7 +72,7 @@ impl From<LocalDiskDelegator> for LockedObj {
7272
7373pub struct LocalFileStore {
7474 local_disks : Vec < LocalDiskDelegator > ,
75- healthy_check_min_disks : i32 ,
75+ min_number_of_available_disks : i32 ,
7676 runtime_manager : RuntimeManager ,
7777 partition_locks : DashMap < String , Arc < RwLock < LockedObj > > > ,
7878}
@@ -93,7 +93,7 @@ impl LocalFileStore {
9393 }
9494 LocalFileStore {
9595 local_disks : local_disk_instances,
96- healthy_check_min_disks : 1 ,
96+ min_number_of_available_disks : 1 ,
9797 runtime_manager,
9898 partition_locks : Default :: default ( ) ,
9999 }
@@ -118,7 +118,7 @@ impl LocalFileStore {
118118 }
119119 LocalFileStore {
120120 local_disks : local_disk_instances,
121- healthy_check_min_disks : localfile_config. healthy_check_min_disks ,
121+ min_number_of_available_disks : localfile_config. min_number_of_available_disks ,
122122 runtime_manager,
123123 partition_locks : Default :: default ( ) ,
124124 }
@@ -171,9 +171,9 @@ impl LocalFileStore {
171171
172172 debug ! (
173173 "disk: available={}, healthy_check_min={}" ,
174- available, self . healthy_check_min_disks
174+ available, self . min_number_of_available_disks
175175 ) ;
176- Ok ( available > self . healthy_check_min_disks )
176+ Ok ( available >= self . min_number_of_available_disks )
177177 }
178178
179179 fn select_disk ( & self , uid : & PartitionedUId ) -> Result < LocalDiskDelegator , WorkerError > {
0 commit comments