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 2014/01/11 00:12:40 UTC
svn commit: r1557280 - /qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Session.cpp
Author: gsim
Date: Fri Jan 10 23:12:40 2014
New Revision: 1557280
URL: http://svn.apache.org/r1557280
Log:
QPID-5469: link should not override a topic policy specifying autodeletion
Modified:
qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Session.cpp
Modified: qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Session.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Session.cpp?rev=1557280&r1=1557279&r2=1557280&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Session.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Session.cpp Fri Jan 10 23:12:40 2014
@@ -480,7 +480,8 @@ void Session::setupOutgoing(pn_link_t* l
if (node.topic) {
settings = node.topic->getPolicy();
settings.durable = durable;
- settings.autodelete = autodelete;
+ //only determine autodelete from link details if the policy did not imply autodeletion
+ if (!settings.autodelete) settings.autodelete = autodelete;
altExchange = node.topic->getAlternateExchange();
}
settings.autoDeleteDelay = pn_terminus_get_timeout(source);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org