mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-21 22:12:36 +00:00
shell: group ec shards by collection in the duplicate id audit (#11763)
EC shards of one volume legitimately span disk types when DiskTypePrefer spills, so grouping by disk type reports healthy volumes as duplicates.
This commit is contained in:
@@ -74,8 +74,8 @@ func (c *commandVolumeCheckDuplicateIds) Do(args []string, commandEnv *CommandEn
|
||||
addCollection(collections, vi.Id, vi.Collection)
|
||||
}
|
||||
for _, si := range di.EcShardInfos {
|
||||
add(ecSeen, si.Id, fmt.Sprintf("collection=%q ec_shards disk=%s", si.Collection, si.DiskType),
|
||||
fmt.Sprintf("%s %s", dn.Id, diskKey))
|
||||
add(ecSeen, si.Id, fmt.Sprintf("collection=%q ec_shards", si.Collection),
|
||||
fmt.Sprintf("%s %s disk=%s", dn.Id, diskKey, si.DiskType))
|
||||
addCollection(ecCollections, si.Id, si.Collection)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user