qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1490240 - /qpid/trunk/qpid/python/qpid/messaging/driver.py
Date Thu, 06 Jun 2013 11:30:16 GMT
Author: gsim
Date: Thu Jun  6 11:30:16 2013
New Revision: 1490240

URL: http://svn.apache.org/r1490240
Log:
QPID-4903: don't delete subscription queue when closing link if it was explicitly declared
non-exclusive

Modified:
    qpid/trunk/qpid/python/qpid/messaging/driver.py

Modified: qpid/trunk/qpid/python/qpid/messaging/driver.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/python/qpid/messaging/driver.py?rev=1490240&r1=1490239&r2=1490240&view=diff
==============================================================================
--- qpid/trunk/qpid/python/qpid/messaging/driver.py (original)
+++ qpid/trunk/qpid/python/qpid/messaging/driver.py Thu Jun  6 11:30:16 2013
@@ -233,7 +233,7 @@ class LinkIn:
                                  exclusive=True,
                                  auto_delete=(reliability == "unreliable")),
                     overrides=declare)
-      _rcv.on_unlink = [QueueDelete(_rcv._queue)]
+      if declare.get("exclusive", True): _rcv.on_unlink = [QueueDelete(_rcv._queue)]
       subject = _rcv.subject or SUBJECT_DEFAULTS.get(subtype)
       bindings = get_bindings(link_opts, _rcv._queue, _rcv.name, subject)
       if not bindings:



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message