clone volume locations in case they are changed
fix https://github.com/seaweedfs/seaweedfs/issues/4642
This commit is contained in:
@@ -97,7 +97,7 @@ func (c *commandVolumeTierUpload) Do(args []string, commandEnv *CommandEnv, writ
|
||||
|
||||
func doVolumeTierUpload(commandEnv *CommandEnv, writer io.Writer, collection string, vid needle.VolumeId, dest string, keepLocalDatFile bool) (err error) {
|
||||
// find volume location
|
||||
existingLocations, found := commandEnv.MasterClient.GetLocations(uint32(vid))
|
||||
existingLocations, found := commandEnv.MasterClient.GetLocationsClone(uint32(vid))
|
||||
if !found {
|
||||
return fmt.Errorf("volume %d not found", vid)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user