mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
feat(cli): Badpartition check display modified to dp number. #1000101191
Signed-off-by: zhumingze <zhumingze@oppo.com>
This commit is contained in:
parent
c2611b2459
commit
a18cf5072e
@ -198,7 +198,11 @@ The "reset" command will be released in next version`,
|
||||
}
|
||||
}
|
||||
} else {
|
||||
stdoutlnf("[Bad data partitions(decommission not completed) count]: %v", len(diagnosis.BadDataPartitionInfos))
|
||||
badPatitionCount := 0
|
||||
for _, bdpv := range diagnosis.BadDataPartitionInfos {
|
||||
badPatitionCount += len(bdpv.PartitionInfos)
|
||||
}
|
||||
stdoutlnf("[Bad data partitions(decommission not completed) count]: %v", badPatitionCount)
|
||||
}
|
||||
|
||||
stdoutln()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user