From 4194ae33fd1e27515a3f38d932c8cab2c276ecf5 Mon Sep 17 00:00:00 2001 From: Yang zhixiang Date: Thu, 3 Nov 2016 15:46:59 +0800 Subject: [PATCH] fix raft_server.go isPeersChanged bug --- weed/server/raft_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/server/raft_server.go b/weed/server/raft_server.go index a35659818..8b2ad3540 100644 --- a/weed/server/raft_server.go +++ b/weed/server/raft_server.go @@ -144,7 +144,7 @@ func isPeersChanged(dir string, self string, peers []string) (oldPeers []string, sort.Strings(peers) sort.Strings(oldPeers) - return oldPeers, reflect.DeepEqual(peers, oldPeers) + return oldPeers, !reflect.DeepEqual(peers, oldPeers) }