aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_balance_test.go
diff options
context:
space:
mode:
authorLisandro Pin <lisandro.pin@proton.ch>2024-11-19 15:33:18 +0100
committerGitHub <noreply@github.com>2024-11-19 06:33:18 -0800
commit0d5393641eab18ec356c7e0ebaf51b1164094d8c (patch)
tree38bf4a3ed3b277c9e1210bb025f4b2e34a6f09a4 /weed/shell/command_volume_balance_test.go
parent2caa0e37414be6feeb5a8ef0b57bdfc78c64728e (diff)
downloadseaweedfs-0d5393641eab18ec356c7e0ebaf51b1164094d8c.tar.xz
seaweedfs-0d5393641eab18ec356c7e0ebaf51b1164094d8c.zip
Unify usage of shell.EcNode.dc as DataCenterId. (#6258)
Diffstat (limited to 'weed/shell/command_volume_balance_test.go')
-rw-r--r--weed/shell/command_volume_balance_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/weed/shell/command_volume_balance_test.go b/weed/shell/command_volume_balance_test.go
index 4e60f6ff8..f1a0c4450 100644
--- a/weed/shell/command_volume_balance_test.go
+++ b/weed/shell/command_volume_balance_test.go
@@ -2,9 +2,10 @@ package shell
import (
"fmt"
+ "testing"
+
"github.com/seaweedfs/seaweedfs/weed/storage/types"
"github.com/stretchr/testify/assert"
- "testing"
"github.com/seaweedfs/seaweedfs/weed/pb/master_pb"
"github.com/seaweedfs/seaweedfs/weed/storage/super_block"
@@ -275,7 +276,7 @@ func TestVolumeSelection(t *testing.T) {
func TestDeleteEmptySelection(t *testing.T) {
topologyInfo := parseOutput(topoData)
- eachDataNode(topologyInfo, func(dc string, rack RackId, dn *master_pb.DataNodeInfo) {
+ eachDataNode(topologyInfo, func(dc DataCenterId, rack RackId, dn *master_pb.DataNodeInfo) {
for _, diskInfo := range dn.DiskInfos {
for _, v := range diskInfo.VolumeInfos {
if v.Size <= super_block.SuperBlockSize && v.ModifiedAtSecond > 0 {