mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-22 06:22:38 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user