diff options
author | Alan Conway <aconway@apache.org> | 2014-08-22 00:39:35 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2014-08-22 00:39:35 +0000 |
commit | eb82a443fd17ab826dc6144587f65d5fe45fe92c (patch) | |
tree | 884c6c83f319970e448b0c54dc3e32dd714d6dec | |
parent | ba6bc73d20e455ab450f651ca7d02dac7dd0b6c6 (diff) | |
download | qpid-python-eb82a443fd17ab826dc6144587f65d5fe45fe92c.tar.gz |
QPID-6012: 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/branches/0.30@1619640 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/cpp/src/qpid/ha/PrimaryTxObserver.cpp | 9 |
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 c94ced7024..b38c1f717d 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.")); |