aboutsummaryrefslogtreecommitdiff
path: root/weed/topology/data_node.go
diff options
context:
space:
mode:
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 {