From e7c824871a7238697e5c534aafffee99078975cd Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 6 Jan 2010 17:01:50 +0000 Subject: Added config-seq counter to track config changes since cluster init. Config-seq is recorded persitently to help identify best store when recovering from total failure. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@896538 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/Connection.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cpp/src/qpid/cluster/Connection.cpp') diff --git a/cpp/src/qpid/cluster/Connection.cpp b/cpp/src/qpid/cluster/Connection.cpp index d223244f15..3a5d121dc1 100644 --- a/cpp/src/qpid/cluster/Connection.cpp +++ b/cpp/src/qpid/cluster/Connection.cpp @@ -322,9 +322,12 @@ void Connection::shadowReady(uint64_t memberId, uint64_t connectionId, const str output.setSendMax(sendMax); } -void Connection::membership(const FieldTable& joiners, const FieldTable& members, const framing::SequenceNumber& frameSeq) { +void Connection::membership(const FieldTable& joiners, const FieldTable& members, + const framing::SequenceNumber& frameSeq, + const framing::SequenceNumber& configSeq) +{ QPID_LOG(debug, cluster << " incoming update complete on connection " << *this); - cluster.updateInDone(ClusterMap(joiners, members, frameSeq)); + cluster.updateInDone(ClusterMap(joiners, members, frameSeq, configSeq)); consumerNumbering.clear(); self.second = 0; // Mark this as completed update connection. } -- cgit v1.2.1