File tree 1 file changed +3
-2
lines changed
ydb/core/mind/bscontroller
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -136,16 +136,17 @@ class TStorageStatsCoroCalculatorImpl : public TActorCoroImpl {
136
136
const auto readCentric = pdisk.HasReadCentric () ? MakeMaybe (pdisk.GetReadCentric ()) : Nothing ();
137
137
if (filter.MatchPDisk (pdisk.GetCategory (), sharedWithOs, readCentric)) {
138
138
const TNodeLocation& location = HostRecordMap->GetLocation (pdiskId.NodeId );
139
+ const bool usable = pdisk.GetDecommitStatus () == " DECOMMIT_NONE" ;
139
140
const bool ok = mapper.RegisterPDisk ({
140
141
.PDiskId = pdiskId,
141
142
.Location = location,
142
- .Usable = true ,
143
+ .Usable = usable ,
143
144
.NumSlots = pdisk.GetNumActiveSlots (),
144
145
.MaxSlots = pdisk.GetExpectedSlotCount (),
145
146
.Groups = {},
146
147
.SpaceAvailable = 0 ,
147
148
.Operational = true ,
148
- .Decommitted = false ,
149
+ .Decommitted = false , // this flag applies only to group reconfiguration
149
150
});
150
151
Y_ABORT_UNLESS (ok);
151
152
break ;
You can’t perform that action at this time.
0 commit comments