aboutsummaryrefslogtreecommitdiff
path: root/weed/topology/data_node.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2023-05-30 08:20:00 -0700
committerchrislu <chris.lu@gmail.com>2023-05-30 08:20:00 -0700
commitca7cc613194b88985548ddaf90fc1687af21a7d6 (patch)
tree1281660e58611158b7d0ed9a369cbab7a89c878c /weed/topology/data_node.go
parentb0da8788a1294714d90f2f0dd6918b00a100ef6f (diff)
downloadseaweedfs-ca7cc613194b88985548ddaf90fc1687af21a7d6.tar.xz
seaweedfs-ca7cc613194b88985548ddaf90fc1687af21a7d6.zip
reduce the window size between unregistering a volume server and creating volumes on that server
fix https://github.com/seaweedfs/seaweedfs/issues/4467
Diffstat (limited to 'weed/topology/data_node.go')
-rw-r--r--weed/topology/data_node.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/weed/topology/data_node.go b/weed/topology/data_node.go
index ee0d37956..5e48056f7 100644
--- a/weed/topology/data_node.go
+++ b/weed/topology/data_node.go
@@ -14,12 +14,13 @@ import (
type DataNode struct {
NodeImpl
- Ip string
- Port int
- GrpcPort int
- PublicUrl string
- LastSeen int64 // unix time in seconds
- Counter int // in race condition, the previous dataNode was not dead
+ Ip string
+ Port int
+ GrpcPort int
+ PublicUrl string
+ LastSeen int64 // unix time in seconds
+ Counter int // in race condition, the previous dataNode was not dead
+ IsTerminating bool
}
func NewDataNode(id string) *DataNode {