Browse Source

Revert "adds a test"

This reverts commit f690643b47.
pull/2232/head
Chris Lu 3 years ago
parent
commit
3739717092
  1. 2
      weed/shell/command_volume_balance.go
  2. 3065
      weed/shell/command_volume_list_test.go

2
weed/shell/command_volume_balance.go

@ -120,7 +120,7 @@ func balanceVolumeServers(commandEnv *CommandEnv, diskTypes []types.DiskType, vo
func balanceVolumeServersByDiskType(commandEnv *CommandEnv, diskType types.DiskType, volumeReplicas map[uint32][]*VolumeReplica, nodes []*Node, volumeSizeLimit uint64, collection string, applyBalancing bool) error { func balanceVolumeServersByDiskType(commandEnv *CommandEnv, diskType types.DiskType, volumeReplicas map[uint32][]*VolumeReplica, nodes []*Node, volumeSizeLimit uint64, collection string, applyBalancing bool) error {
// balance read only volumes
// balance readable volumes
for _, n := range nodes { for _, n := range nodes {
n.selectVolumes(func(v *master_pb.VolumeInformationMessage) bool { n.selectVolumes(func(v *master_pb.VolumeInformationMessage) bool {
if collection != "ALL_COLLECTIONS" { if collection != "ALL_COLLECTIONS" {

3065
weed/shell/command_volume_list_test.go
File diff suppressed because it is too large
View File

Loading…
Cancel
Save