Browse Source

revert delete ops

Signed-off-by: LHHDZ <shichanglin5@qq.com>
pull/5936/head
LHHDZ 5 months ago
parent
commit
63442dc80b
  1. 2
      weed/shell/command_collection_delete.go
  2. 2
      weed/shell/command_fs_mv.go
  3. 2
      weed/shell/command_fs_rm.go
  4. 2
      weed/shell/command_s3_bucket_delete.go
  5. 2
      weed/shell/command_volume_balance_test.go
  6. 2
      weed/shell/command_volume_delete.go

2
weed/shell/command_collection_delete.go

@ -10,7 +10,7 @@ import (
) )
func init() { func init() {
//Commands = append(Commands, &commandCollectionDelete{})
Commands = append(Commands, &commandCollectionDelete{})
} }
type commandCollectionDelete struct { type commandCollectionDelete struct {

2
weed/shell/command_fs_mv.go

@ -10,7 +10,7 @@ import (
) )
func init() { func init() {
//Commands = append(Commands, &commandFsMv{})
Commands = append(Commands, &commandFsMv{})
} }
type commandFsMv struct { type commandFsMv struct {

2
weed/shell/command_fs_rm.go

@ -11,7 +11,7 @@ import (
) )
func init() { func init() {
//Commands = append(Commands, &commandFsRm{})
Commands = append(Commands, &commandFsRm{})
} }
type commandFsRm struct { type commandFsRm struct {

2
weed/shell/command_s3_bucket_delete.go

@ -11,7 +11,7 @@ import (
) )
func init() { func init() {
//Commands = append(Commands, &commandS3BucketDelete{})
Commands = append(Commands, &commandS3BucketDelete{})
} }
type commandS3BucketDelete struct { type commandS3BucketDelete struct {

2
weed/shell/command_volume_balance_test.go

@ -252,7 +252,7 @@ func TestIsGoodMove(t *testing.T) {
func TestBalance(t *testing.T) { func TestBalance(t *testing.T) {
topologyInfo := parseOutput(topoData) topologyInfo := parseOutput(topoData)
volumeServers := collectVolumeServersByDc(topologyInfo, "") volumeServers := collectVolumeServersByDc(topologyInfo, "")
volumeReplicas, _ := collectVolumeReplicaLocations(topologyInfo, nil)
volumeReplicas, _ := collectVolumeReplicaLocations(topologyInfo)
diskTypes := collectVolumeDiskTypes(topologyInfo) diskTypes := collectVolumeDiskTypes(topologyInfo)
if err := balanceVolumeServers(nil, diskTypes, volumeReplicas, volumeServers, "ALL_COLLECTIONS", false); err != nil { if err := balanceVolumeServers(nil, diskTypes, volumeReplicas, volumeServers, "ALL_COLLECTIONS", false); err != nil {

2
weed/shell/command_volume_delete.go

@ -9,7 +9,7 @@ import (
) )
func init() { func init() {
//Commands = append(Commands, &commandVolumeDelete{})
Commands = append(Commands, &commandVolumeDelete{})
} }
type commandVolumeDelete struct { type commandVolumeDelete struct {

Loading…
Cancel
Save