aboutsummaryrefslogtreecommitdiff
path: root/weed/topology/data_node.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-05-23 00:42:28 -0700
committerChris Lu <chris.lu@gmail.com>2019-05-23 00:42:28 -0700
commit4659d80035430bcbd6f1642311680af0f7a6f215 (patch)
tree3cdc36c2e6c4385fef9f8a59a5baccce84057df0 /weed/topology/data_node.go
parente913ee380a88cbc35e8baa6015ceb15971a05d20 (diff)
downloadseaweedfs-4659d80035430bcbd6f1642311680af0f7a6f215.tar.xz
seaweedfs-4659d80035430bcbd6f1642311680af0f7a6f215.zip
prepare to register ec shard info in master
Diffstat (limited to 'weed/topology/data_node.go')
-rw-r--r--weed/topology/data_node.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/topology/data_node.go b/weed/topology/data_node.go
index ff160e178..dba323518 100644
--- a/weed/topology/data_node.go
+++ b/weed/topology/data_node.go
@@ -21,7 +21,7 @@ type DataNode struct {
Port int
PublicUrl string
LastSeen int64 // unix time in seconds
- ecShards map[needle.VolumeId]erasure_coding.EcVolumeInfo
+ ecShards map[needle.VolumeId]*erasure_coding.EcVolumeInfo
ecShardsLock sync.RWMutex
}
@@ -30,7 +30,7 @@ func NewDataNode(id string) *DataNode {
s.id = NodeId(id)
s.nodeType = "DataNode"
s.volumes = make(map[needle.VolumeId]storage.VolumeInfo)
- s.ecShards = make(map[needle.VolumeId]erasure_coding.EcVolumeInfo)
+ s.ecShards = make(map[needle.VolumeId]*erasure_coding.EcVolumeInfo)
s.NodeImpl.value = s
return s
}