Browse Source

load ec volume id locations

fix https://github.com/seaweedfs/seaweedfs/issues/5713
pull/5894/head
chrislu 4 months ago
parent
commit
e14b6e02df
  1. 7
      weed/shell/command_fs_verify.go

7
weed/shell/command_fs_verify.go

@ -119,6 +119,13 @@ func (c *commandFsVerify) collectVolumeIds() error {
c.volumeServers = append(c.volumeServers, volumeServer)
}
}
for _, vi := range diskInfo.EcShardInfos {
volumeServer := pb.NewServerAddressFromDataNode(nodeInfo)
c.volumeIds[vi.Id] = append(c.volumeIds[vi.Id], volumeServer)
if !slices.Contains(c.volumeServers, volumeServer) {
c.volumeServers = append(c.volumeServers, volumeServer)
}
}
}
})
return nil

Loading…
Cancel
Save