mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-11-08 16:56:14 +08:00
clone volume locations in case they are changed
fix https://github.com/seaweedfs/seaweedfs/issues/4642
This commit is contained in:
@@ -105,7 +105,7 @@ func collectRemoteVolumes(topoInfo *master_pb.TopologyInfo, selectedCollection s
|
||||
|
||||
func doVolumeTierDownload(commandEnv *CommandEnv, writer io.Writer, collection string, vid needle.VolumeId) (err error) {
|
||||
// find volume location
|
||||
locations, found := commandEnv.MasterClient.GetLocations(uint32(vid))
|
||||
locations, found := commandEnv.MasterClient.GetLocationsClone(uint32(vid))
|
||||
if !found {
|
||||
return fmt.Errorf("volume %d not found", vid)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user