summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-03-30 20:57:37 +0000
committerAlan Conway <aconway@apache.org>2010-03-30 20:57:37 +0000
commit887281838e4bf7825189ce3b0a8d7509789e6a08 (patch)
treef4fb871370d67d8d632aeae54fadb94caed26e48 /cpp/src
parentf155c23981b31df26db6968c05f72fd9eb8926ff (diff)
downloadqpid-python-887281838e4bf7825189ce3b0a8d7509789e6a08.tar.gz
Joining a cluster: don't push an empty store.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@929278 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/cluster/Cluster.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/src/qpid/cluster/Cluster.cpp b/cpp/src/qpid/cluster/Cluster.cpp
index 258460fe8f..858900be9e 100644
--- a/cpp/src/qpid/cluster/Cluster.cpp
+++ b/cpp/src/qpid/cluster/Cluster.cpp
@@ -599,6 +599,7 @@ void Cluster::initMapCompleted(Lock& l) {
// We decide here whether we want to recover from our store.
// We won't recover if we are joining an active cluster or our store is dirty.
if (store.hasStore() &&
+ store.getState() != STORE_STATE_EMPTY_STORE &&
(initMap.isActive() || store.getState() == STORE_STATE_DIRTY_STORE))
broker.setRecovery(false); // Ditch my current store.
state = INIT;