diff options
| author | Max Denushev <mdenushev@ya.ru> | 2024-09-25 02:15:54 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-24 16:15:54 -0700 |
| commit | d056c0ddf2b7e34a5c7e8fdfe829e5c74e65a068 (patch) | |
| tree | fffe7a06af9a4dee525c40cdcf1db02f5190bddd /weed/shell/command_volume_tier_upload.go | |
| parent | c96b2ce8e55e84fe46219886f15deb186653c39a (diff) | |
| download | seaweedfs-d056c0ddf2b7e34a5c7e8fdfe829e5c74e65a068.tar.xz seaweedfs-d056c0ddf2b7e34a5c7e8fdfe829e5c74e65a068.zip | |
fix(volume): don't persist RO state in specific cases (#6058)
* fix(volume): don't persist RO state in specific cases
* fix(volume): writable always persist
Diffstat (limited to 'weed/shell/command_volume_tier_upload.go')
| -rw-r--r-- | weed/shell/command_volume_tier_upload.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/weed/shell/command_volume_tier_upload.go b/weed/shell/command_volume_tier_upload.go index cb805b0cf..d30e3f8e5 100644 --- a/weed/shell/command_volume_tier_upload.go +++ b/weed/shell/command_volume_tier_upload.go @@ -4,10 +4,11 @@ import ( "context" "flag" "fmt" - "github.com/seaweedfs/seaweedfs/weed/pb" "io" "time" + "github.com/seaweedfs/seaweedfs/weed/pb" + "google.golang.org/grpc" "github.com/seaweedfs/seaweedfs/weed/operation" @@ -102,7 +103,7 @@ func doVolumeTierUpload(commandEnv *CommandEnv, writer io.Writer, collection str return fmt.Errorf("volume %d not found", vid) } - err = markVolumeReplicasWritable(commandEnv.option.GrpcDialOption, vid, existingLocations, false) + err = markVolumeReplicasWritable(commandEnv.option.GrpcDialOption, vid, existingLocations, false, false) if err != nil { return fmt.Errorf("mark volume %d as readonly on %s: %v", vid, existingLocations[0].Url, err) } |
