From 98c47c72d020b6321387ed833a05ca5dbab4b765 Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Thu, 14 Sep 2017 14:08:17 -0700 Subject: [PATCH] changelog and feedback --- CHANGELOG.md | 2 ++ client/client.go | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eade1e4a8738..21e6947ee564 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ BUG FIXES: * core: *Fix restoration of stopped periodic jobs [GH-3201] * api: Fix search handling of jobs with more than four hyphens and case were length could cause lookup error [GH-3203] + * client: Fix lock contention that could cause a node to miss a heartbeat and + be marked as down [GH-3195] ## 0.6.3 (September 11, 2017) diff --git a/client/client.go b/client/client.go index 796e72674ac4..b77bf6107c65 100644 --- a/client/client.go +++ b/client/client.go @@ -369,8 +369,7 @@ func (c *Client) Leave() error { // Datacenter returns the datacenter for the given client func (c *Client) Datacenter() string { - dc := c.config.Node.Datacenter - return dc + return c.config.Node.Datacenter } // Region returns the region for the given client