diff options
| author | chrislu <chris.lu@gmail.com> | 2023-07-06 00:32:58 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2023-07-06 00:32:58 -0700 |
| commit | 31b2751affd24ccff4633d09b88311587b39289a (patch) | |
| tree | 4b14c67b01d4f144eac669984ce58c4b5fcde9af /weed/shell/command_volume_tier_upload.go | |
| parent | a315490f7d4d2aa8b5226ea4029cb112edb88137 (diff) | |
| download | seaweedfs-31b2751affd24ccff4633d09b88311587b39289a.tar.xz seaweedfs-31b2751affd24ccff4633d09b88311587b39289a.zip | |
clone volume locations in case they are changed
fix https://github.com/seaweedfs/seaweedfs/issues/4642
Diffstat (limited to 'weed/shell/command_volume_tier_upload.go')
| -rw-r--r-- | weed/shell/command_volume_tier_upload.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_volume_tier_upload.go b/weed/shell/command_volume_tier_upload.go index a8221bbe9..c109d59d8 100644 --- a/weed/shell/command_volume_tier_upload.go +++ b/weed/shell/command_volume_tier_upload.go @@ -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) } |
