summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/ClusterMap.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-07-01 21:58:40 +0000
committerAlan Conway <aconway@apache.org>2009-07-01 21:58:40 +0000
commit4ceab39ad4caa3e1769ead86291b8f4297488fd8 (patch)
tree83e0533ec3bcaa3c63e27daac8d1614ab6997141 /cpp/src/qpid/cluster/ClusterMap.h
parent205287377cf6d24b461ef336b268294f860862a3 (diff)
downloadqpid-python-4ceab39ad4caa3e1769ead86291b8f4297488fd8.tar.gz
Fix members joining cluster while cluster is handling client errors.
Completes the previous incomplete fix in r790163. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@790397 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/ClusterMap.h')
-rw-r--r--cpp/src/qpid/cluster/ClusterMap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/src/qpid/cluster/ClusterMap.h b/cpp/src/qpid/cluster/ClusterMap.h
index 3359c7c1f3..7e42ed1c19 100644
--- a/cpp/src/qpid/cluster/ClusterMap.h
+++ b/cpp/src/qpid/cluster/ClusterMap.h
@@ -95,6 +95,9 @@ class ClusterMap {
uint64_t getFrameSeq() { return frameSeq; }
uint64_t incrementFrameSeq() { return ++frameSeq; }
+ /** Clear out all knowledge of joiners & members, just keep alive set */
+ void clearStatus() { joiners.clear(); members.clear(); }
+
private:
Url getUrl(const Map& map, const MemberId& id);