Author: gsim
Date: Wed Jul 1 13:47:54 2009
New Revision: 790164
URL: http://svn.apache.org/viewvc?rev=790164&view=rev
Log:
QPID-1963: hold lock across TopicExchange::isBound() method
Modified:
qpid/trunk/qpid/cpp/src/qpid/broker/TopicExchange.cpp
Modified: qpid/trunk/qpid/cpp/src/qpid/broker/TopicExchange.cpp
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/TopicExchange.cpp?rev=790164&r1=790163&r2=790164&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/TopicExchange.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/TopicExchange.cpp Wed Jul 1 13:47:54
2009
@@ -322,6 +322,7 @@
bool TopicExchange::isBound(Queue::shared_ptr queue, const string* const
routingKey, const FieldTable* const)
{
+ RWlock::ScopedRlock l(lock);
if (routingKey && queue) {
string key(normalize(*routingKey));
return isBound(queue, key);
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]