summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qpid/ha/Primary.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2013-12-18 17:04:05 +0000
committerAlan Conway <aconway@apache.org>2013-12-18 17:04:05 +0000
commite4c01f2d3e221ba0f3dff689eea72837462a5909 (patch)
treecf86dac58445fdff104d4965f29b6d556bda9fa5 /qpid/cpp/src/qpid/ha/Primary.cpp
parenta71ccf9988f88111fb06fb095fa951bebba4c577 (diff)
downloadqpid-python-e4c01f2d3e221ba0f3dff689eea72837462a5909.tar.gz
QPID-5430: HA primary broker does not go active if there are no replicated queues.
Primary::opened was not checking if the primary was ready after a knonw backup reconnected, only when a replicated queue became ready. Thus if there were no replicated queues the primary never became ready. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1552025 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qpid/ha/Primary.cpp')
-rw-r--r--qpid/cpp/src/qpid/ha/Primary.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/ha/Primary.cpp b/qpid/cpp/src/qpid/ha/Primary.cpp
index b437190004..b29a550559 100644
--- a/qpid/cpp/src/qpid/ha/Primary.cpp
+++ b/qpid/cpp/src/qpid/ha/Primary.cpp
@@ -336,6 +336,7 @@ void Primary::opened(broker::Connection& connection) {
} else {
QPID_LOG(info, logPrefix << "Known backup reconnection: " << info);
i->second->setConnection(&connection);
+ backup = i->second;
}
if (info.getStatus() == JOINING) {
info.setStatus(CATCHUP);