From da9ac65ea65e4badf1be178a026abe0c7de91c98 Mon Sep 17 00:00:00 2001 From: Flavio Crisciani Date: Mon, 8 May 2017 16:58:53 -0700 Subject: [PATCH] Remove explicit set of memberlist protocol Memberlist does a full validation of the protocol version (min, current, max) amoung all the ndoes of the cluster. The previous code was setting the protocol version to max version. That made the upgrade incompatible. Signed-off-by: Flavio Crisciani --- libnetwork/networkdb/cluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnetwork/networkdb/cluster.go b/libnetwork/networkdb/cluster.go index 54c392c5a4..35977fcae9 100644 --- a/libnetwork/networkdb/cluster.go +++ b/libnetwork/networkdb/cluster.go @@ -107,7 +107,7 @@ func (nDB *NetworkDB) clusterInit() error { config.BindPort = nDB.config.BindPort } - config.ProtocolVersion = memberlist.ProtocolVersionMax + config.ProtocolVersion = memberlist.ProtocolVersion2Compatible config.Delegate = &delegate{nDB: nDB} config.Events = &eventDelegate{nDB: nDB} // custom logger that does not add time or date, so they are not