summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/ha/QueueReplicator.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2012-09-25 20:49:33 +0000
committerAlan Conway <aconway@apache.org>2012-09-25 20:49:33 +0000
commitd8593db06d2514429b3a57959e401b389d2365ec (patch)
tree922953738515964656ea6e8ab83c91012841412f /cpp/src/qpid/ha/QueueReplicator.cpp
parentd11eff50f9a0115b442df9e7c40cf64ae201a2bf (diff)
downloadqpid-python-d8593db06d2514429b3a57959e401b389d2365ec.tar.gz
QPID-4325: HA Starting from persistent store
When re-starting a persistent HA cluster, the broker that becomes primary should keep its store data while all the backup brokers should discard their store data and catch up from the primary. Backups cannot simply use their own stores because sequence numbers of stored messages will not match on all brokers. The backup erases individual queues and exchanges as the catch-up process gets to them. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1390123 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/ha/QueueReplicator.cpp')
-rw-r--r--cpp/src/qpid/ha/QueueReplicator.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/src/qpid/ha/QueueReplicator.cpp b/cpp/src/qpid/ha/QueueReplicator.cpp
index 82daad9d9c..07c94ad261 100644
--- a/cpp/src/qpid/ha/QueueReplicator.cpp
+++ b/cpp/src/qpid/ha/QueueReplicator.cpp
@@ -67,6 +67,7 @@ QueueReplicator::QueueReplicator(HaBroker& hb,
logPrefix("Backup queue "+q->getName()+": "),
queue(q), link(l), brokerInfo(hb.getBrokerInfo())
{
+ args.setString(QPID_REPLICATE, printable(NONE).str());
Uuid uuid(true);
bridgeName = replicatorName(q->getName()) + std::string(".") + uuid.str();
}