summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/LinkRegistry.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2012-05-09 15:38:32 +0000
committerAlan Conway <aconway@apache.org>2012-05-09 15:38:32 +0000
commit9ad03eef2f4ab4574ed98a334dc125c13a15cd6f (patch)
treeccfb8c75657b30ecb19696d790581b86ea09fe06 /cpp/src/qpid/broker/LinkRegistry.cpp
parent51993808f35eb64ddd3c3ceb166f272e40f86c98 (diff)
downloadqpid-python-9ad03eef2f4ab4574ed98a334dc125c13a15cd6f.tar.gz
QPID-3603: Make failover subscrption optional for Links.
Used by ha::Backup because HA brokers use a different reconnect list from clients. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1336246 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/LinkRegistry.cpp')
-rw-r--r--cpp/src/qpid/broker/LinkRegistry.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/cpp/src/qpid/broker/LinkRegistry.cpp b/cpp/src/qpid/broker/LinkRegistry.cpp
index 3cad2c40c9..060eea412b 100644
--- a/cpp/src/qpid/broker/LinkRegistry.cpp
+++ b/cpp/src/qpid/broker/LinkRegistry.cpp
@@ -101,7 +101,8 @@ pair<Link::shared_ptr, bool> LinkRegistry::declare(const string& name,
bool durable,
const string& authMechanism,
const string& username,
- const string& password)
+ const string& password,
+ bool failover)
{
Mutex::ScopedLock locker(lock);
@@ -111,10 +112,11 @@ pair<Link::shared_ptr, bool> LinkRegistry::declare(const string& name,
{
Link::shared_ptr link;
- link = Link::shared_ptr (new Link (name, this, host, port, transport,
- boost::bind(&LinkRegistry::linkDestroyed, this, _1),
- durable, authMechanism, username, password, broker,
- parent));
+ link = Link::shared_ptr (
+ new Link (name, this, host, port, transport,
+ boost::bind(&LinkRegistry::linkDestroyed, this, _1),
+ durable, authMechanism, username, password, broker,
+ parent, failover));
if (durable && store) store->create(*link);
links[name] = link;
QPID_LOG(debug, "Creating new link; name=" << name );