diff options
| author | Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> | 2023-06-12 22:42:44 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-12 10:42:44 -0700 |
| commit | 25535e9c36ad55b4e75f88ed01ca0c5e3947663e (patch) | |
| tree | 8e6e71e734468822cabc2bbf979d7d6cff67f68f /weed/shell/command_volume_tier_move.go | |
| parent | 2e42cdeb221572a20b0d6576dc8e2f6f3369b546 (diff) | |
| download | seaweedfs-25535e9c36ad55b4e75f88ed01ca0c5e3947663e.tar.xz seaweedfs-25535e9c36ad55b4e75f88ed01ca0c5e3947663e.zip | |
Delete volume is empty (#4561)
* use onlyEmpty for deleteVolume
https://github.com/seaweedfs/seaweedfs/issues/4559
* fix IsEmpty
* fix test
---------
Co-authored-by: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.co>
Diffstat (limited to 'weed/shell/command_volume_tier_move.go')
| -rw-r--r-- | weed/shell/command_volume_tier_move.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_volume_tier_move.go b/weed/shell/command_volume_tier_move.go index a59119a40..90fef27c0 100644 --- a/weed/shell/command_volume_tier_move.go +++ b/weed/shell/command_volume_tier_move.go @@ -270,7 +270,7 @@ func (c *commandVolumeTierMove) doMoveOneVolume(commandEnv *CommandEnv, writer i // remove the remaining replicas for _, loc := range locations { if loc.Url != dst.dataNode.Id && loc.ServerAddress() != sourceVolumeServer { - if err = deleteVolume(commandEnv.option.GrpcDialOption, vid, loc.ServerAddress()); err != nil { + if err = deleteVolume(commandEnv.option.GrpcDialOption, vid, loc.ServerAddress(), false); err != nil { fmt.Fprintf(writer, "failed to delete volume %d on %s: %v\n", vid, loc.Url, err) } // reduce volume count? Not really necessary since they are "more" full and will not be a candidate to move to |
