aboutsummaryrefslogtreecommitdiff
path: root/weed/topology/rack.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2017-01-10 01:01:12 -0800
committerChris Lu <chris.lu@gmail.com>2017-01-10 01:01:12 -0800
commite46c3415f752e2e0c252c420adb882c4bcb7416b (patch)
tree65bb66899c2e97ebc340f09e7951e2f663ec4d78 /weed/topology/rack.go
parent4beaaa06505220c80d502d7b3ebd8b8b71071f5f (diff)
downloadseaweedfs-e46c3415f752e2e0c252c420adb882c4bcb7416b.tar.xz
seaweedfs-e46c3415f752e2e0c252c420adb882c4bcb7416b.zip
gRpc for master~volume heartbeat
Diffstat (limited to 'weed/topology/rack.go')
-rw-r--r--weed/topology/rack.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/weed/topology/rack.go b/weed/topology/rack.go
index 1ca2f8de8..a48d64323 100644
--- a/weed/topology/rack.go
+++ b/weed/topology/rack.go
@@ -32,11 +32,6 @@ func (r *Rack) GetOrCreateDataNode(ip string, port int, publicUrl string, maxVol
dn := c.(*DataNode)
if dn.MatchLocation(ip, port) {
dn.LastSeen = time.Now().Unix()
- if dn.Dead {
- dn.Dead = false
- r.GetTopology().chanRecoveredDataNodes <- dn
- dn.UpAdjustMaxVolumeCountDelta(maxVolumeCount - dn.maxVolumeCount)
- }
return dn
}
}