aboutsummaryrefslogtreecommitdiff
path: root/go/topology/rack.go
diff options
context:
space:
mode:
authorchrislusf <chris.lu@gmail.com>2015-03-09 01:10:01 -0700
committerchrislusf <chris.lu@gmail.com>2015-03-09 01:10:04 -0700
commitf511b507a5230e931d0250b446f744073be879b3 (patch)
treee9728b47902fc4f31aa93d24a937cb2654becc6c /go/topology/rack.go
parentd48d76cb4f419a58539fb84c7a45c7eb863b854f (diff)
downloadseaweedfs-f511b507a5230e931d0250b446f744073be879b3.tar.xz
seaweedfs-f511b507a5230e931d0250b446f744073be879b3.zip
Add read only public port on volume server
Add read only public port on volume server
Diffstat (limited to 'go/topology/rack.go')
-rw-r--r--go/topology/rack.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/go/topology/rack.go b/go/topology/rack.go
index 50ad5f009..40e19dd0d 100644
--- a/go/topology/rack.go
+++ b/go/topology/rack.go
@@ -27,7 +27,7 @@ func (r *Rack) FindDataNode(ip string, port int) *DataNode {
}
return nil
}
-func (r *Rack) GetOrCreateDataNode(ip string, port, adminPort int, publicUrl string, maxVolumeCount int) *DataNode {
+func (r *Rack) GetOrCreateDataNode(ip string, port int, publicUrl string, maxVolumeCount int) *DataNode {
for _, c := range r.Children() {
dn := c.(*DataNode)
if dn.MatchLocation(ip, port) {
@@ -43,7 +43,6 @@ func (r *Rack) GetOrCreateDataNode(ip string, port, adminPort int, publicUrl str
dn := NewDataNode(ip + ":" + strconv.Itoa(port))
dn.Ip = ip
dn.Port = port
- dn.AdminPort = adminPort
dn.PublicUrl = publicUrl
dn.maxVolumeCount = maxVolumeCount
dn.LastSeen = time.Now().Unix()