Merge pull request #3890 from hashicorp/b-heartbeat

Heartbeat improvements and handling failures during establishing leadership
This commit is contained in:
Alex Dadgar
2018-03-12 14:41:59 -07:00
committed by GitHub
8 changed files with 119 additions and 11 deletions

View File

@@ -1171,6 +1171,7 @@ func (c *Client) registerNode() error {
// Update the node status to ready after we register.
c.configLock.Lock()
node.Status = structs.NodeStatusReady
c.config.Node.Status = structs.NodeStatusReady
c.configLock.Unlock()
c.logger.Printf("[INFO] client: node registration complete")