aboutsummaryrefslogtreecommitdiff
path: root/weed/topology/data_node.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-09-05 15:20:03 -0700
committerChris Lu <chris.lu@gmail.com>2021-09-05 15:20:03 -0700
commit65af3cf4dfc338129913aac0ae2b5176c6cd0702 (patch)
tree099e52507668b2d1d8b7f8d8b68af8e2ba61755b /weed/topology/data_node.go
parent57a95887d23777813ffd580d809bfea9ac84036f (diff)
downloadseaweedfs-65af3cf4dfc338129913aac0ae2b5176c6cd0702.tar.xz
seaweedfs-65af3cf4dfc338129913aac0ae2b5176c6cd0702.zip
master: disconnect only the phantom volume server
fix https://github.com/chrislusf/seaweedfs/issues/2311
Diffstat (limited to 'weed/topology/data_node.go')
-rw-r--r--weed/topology/data_node.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/topology/data_node.go b/weed/topology/data_node.go
index 2813f7b45..3f0234ca8 100644
--- a/weed/topology/data_node.go
+++ b/weed/topology/data_node.go
@@ -18,6 +18,7 @@ type DataNode struct {
Port int
PublicUrl string
LastSeen int64 // unix time in seconds
+ Counter int // in race condition, the previous dataNode was not dead
}
func NewDataNode(id string) *DataNode {