aboutsummaryrefslogtreecommitdiff
path: root/weed/topology/data_node.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-06-04 23:41:56 -0700
committerChris Lu <chris.lu@gmail.com>2019-06-04 23:41:56 -0700
commiteaa76f11b7911af7c1faebddcccd4af2404122d6 (patch)
tree0d80cd90faefa5ccab536eefc630615a26927084 /weed/topology/data_node.go
parentca8a2bb5345aec1d15bf087d66028292d567de87 (diff)
downloadseaweedfs-eaa76f11b7911af7c1faebddcccd4af2404122d6.tar.xz
seaweedfs-eaa76f11b7911af7c1faebddcccd4af2404122d6.zip
free volume slots factor in ec shard counts
Diffstat (limited to 'weed/topology/data_node.go')
-rw-r--r--weed/topology/data_node.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/topology/data_node.go b/weed/topology/data_node.go
index bb9970446..3e72ccdbf 100644
--- a/weed/topology/data_node.go
+++ b/weed/topology/data_node.go
@@ -146,7 +146,7 @@ func (dn *DataNode) ToMap() interface{} {
ret := make(map[string]interface{})
ret["Url"] = dn.Url()
ret["Volumes"] = dn.GetVolumeCount()
- ret["EcShards"] = dn.GetEcShardsCount()
+ ret["EcShards"] = dn.GetEcShardCount()
ret["Max"] = dn.GetMaxVolumeCount()
ret["Free"] = dn.FreeSpace()
ret["PublicUrl"] = dn.PublicUrl