summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2014-08-15 10:01:28 +0000
committerAlan Conway <aconway@apache.org>2014-08-15 10:01:28 +0000
commit6a7f66cac55a448f351d6209d098e945e6c9e584 (patch)
treee2b7dc20965f6409b42359357a4981b03cbb2e62 /qpid/cpp/src
parent6e9e80facaff2c5ae97f669c10092680adaccff2 (diff)
downloadqpid-python-6a7f66cac55a448f351d6209d098e945e6c9e584.tar.gz
NO-JIRA: HA Account for TX primary replication queues as HA user.
Previously they were not accounted which caused ACL notice messages. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1618133 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/ha/PrimaryTxObserver.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/qpid/cpp/src/qpid/ha/PrimaryTxObserver.cpp b/qpid/cpp/src/qpid/ha/PrimaryTxObserver.cpp
index e7d77f9810..90046a8c5a 100644
--- a/qpid/cpp/src/qpid/ha/PrimaryTxObserver.cpp
+++ b/qpid/cpp/src/qpid/ha/PrimaryTxObserver.cpp
@@ -123,8 +123,13 @@ void PrimaryTxObserver::initialize() {
boost::shared_ptr<Exchange> ex(new Exchange(shared_from_this()));
broker.getExchanges().registerExchange(ex);
pair<QueuePtr, bool> result =
- broker.getQueues().declare(
- exchangeName, QueueSettings(/*durable*/false, /*autodelete*/true));
+ broker.createQueue(
+ exchangeName,
+ QueueSettings(/*durable*/false, /*autodelete*/true),
+ 0, // no owner regardless of exclusivity on primary
+ string(), // No alternate exchange
+ haBroker.getUserId(),
+ string()); // Remote host.
if (!result.second)
throw InvalidArgumentException(
QPID_MSG(logPrefix << "TX replication queue already exists."));