qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1480238 - /qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Outgoing.cpp
Date Wed, 08 May 2013 11:55:43 GMT
Author: gsim
Date: Wed May  8 11:55:43 2013
New Revision: 1480238

URL: http://svn.apache.org/r1480238
Log:
QPID-4819: ensure exclusive lock is released when link is detached (allowing queue to be deleted

Modified:
    qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Outgoing.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Outgoing.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Outgoing.cpp?rev=1480238&r1=1480237&r2=1480238&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Outgoing.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Outgoing.cpp Wed May  8 11:55:43 2013
@@ -148,6 +148,7 @@ void OutgoingFromQueue::detached()
     for (size_t i = 0 ; i < deliveries.capacity(); ++i) {
         if (deliveries[i].msg) queue->release(deliveries[i].cursor, true);
     }
+    if (exclusive) queue->releaseExclusiveOwnership();
     Queue::tryAutoDelete(*queue->getBroker(), queue, "", "");
 }
 



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


Mime
View raw message