You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2019/05/08 22:03:50 UTC
[qpid-cpp] branch master updated: QPID-8310: fix determination of
autodelete for subscription queues
This is an automated email from the ASF dual-hosted git repository.
gsim pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-cpp.git
The following commit(s) were added to refs/heads/master by this push:
new 2c4691b QPID-8310: fix determination of autodelete for subscription queues
2c4691b is described below
commit 2c4691b04aab7b1c1a7c3d1596966bc187aa436e
Author: Gordon Sim <gs...@redhat.com>
AuthorDate: Wed May 8 23:03:28 2019 +0100
QPID-8310: fix determination of autodelete for subscription queues
---
src/qpid/broker/amqp/Session.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/qpid/broker/amqp/Session.cpp b/src/qpid/broker/amqp/Session.cpp
index 1f25db2..cf8ca63 100644
--- a/src/qpid/broker/amqp/Session.cpp
+++ b/src/qpid/broker/amqp/Session.cpp
@@ -541,7 +541,7 @@ void Session::setupOutgoing(pn_link_t* link, pn_terminus_t* source, const std::s
authorise.access(node.exchange);//do separate access check before trying to create the queue
bool shared = is_capability_requested(SHARED, pn_terminus_capabilities(source));
bool durable = pn_terminus_get_durability(source);
- bool autodelete = !durable && pn_link_remote_snd_settle_mode(link) != PN_SND_UNSETTLED;
+ bool autodelete = pn_terminus_get_expiry_policy(source) != PN_EXPIRE_NEVER;
QueueSettings settings(durable, autodelete);
std::string altExchange;
if (node.topic) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org