shell: do not flag ec-only volumes as duplicates

An ec-only volume has no regular copy, so its shard collections had
nothing to compare against and always read as foreign.
This commit is contained in:
Chris Lu
2026-10-20 05:38:25 -07:00
parent 7262015088
commit c564d3e95a
@@ -96,9 +96,11 @@ func (c *commandVolumeCheckDuplicateIds) Do(args []string, commandEnv *CommandEn
layouts := seen[vid]
shardLayouts := ecSeen[vid]
ecForeign := false
for collection := range ecCollections[vid] {
if !collections[vid][collection] {
ecForeign = true
if len(collections[vid]) > 0 {
for collection := range ecCollections[vid] {
if !collections[vid][collection] {
ecForeign = true
}
}
}
if len(layouts) < 2 && len(shardLayouts) < 2 && !ecForeign {