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 07:35:41 -07:00
parent f32be4c16e
commit be4bead284
@@ -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 {