aboutsummaryrefslogtreecommitdiff
path: root/weed/shell
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-11-27 12:34:57 -0800
committerChris Lu <chris.lu@gmail.com>2019-11-27 12:34:57 -0800
commit586798ecc0e4685cee7b746de1ebc73580449127 (patch)
treef2b9e0104f55107bd696b03a497082aa323b1e8f /weed/shell
parent46294b42e65d665a9d5ef31b646da926855f2a7a (diff)
downloadseaweedfs-586798ecc0e4685cee7b746de1ebc73580449127.tar.xz
seaweedfs-586798ecc0e4685cee7b746de1ebc73580449127.zip
go fmt
Diffstat (limited to 'weed/shell')
-rw-r--r--weed/shell/command_volume_tier.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/weed/shell/command_volume_tier.go b/weed/shell/command_volume_tier.go
index 9dda37bd4..177d3f30d 100644
--- a/weed/shell/command_volume_tier.go
+++ b/weed/shell/command_volume_tier.go
@@ -82,11 +82,11 @@ func doVolumeTier(ctx context.Context, commandEnv *CommandEnv, collection string
// mark the volume as readonly
/*
- err = markVolumeReadonly(ctx, commandEnv.option.GrpcDialOption, needle.VolumeId(vid), locations)
- if err != nil {
- return fmt.Errorf("mark volume %d as readonly on %s: %v", vid, locations[0].Url, err)
- }
- */
+ err = markVolumeReadonly(ctx, commandEnv.option.GrpcDialOption, needle.VolumeId(vid), locations)
+ if err != nil {
+ return fmt.Errorf("mark volume %d as readonly on %s: %v", vid, locations[0].Url, err)
+ }
+ */
// copy the .dat file to remote tier
err = copyDatToRemoteTier(ctx, commandEnv.option.GrpcDialOption, needle.VolumeId(vid), collection, locations[0].Url, dest)