summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2009-07-01 13:47:54 +0000
committerGordon Sim <gsim@apache.org>2009-07-01 13:47:54 +0000
commit1c5601630dbac0540f96a9bcddb78c830f00ce11 (patch)
tree7aa0370f6d10b9290427936f0356bf71e1541c1f /qpid/cpp
parent62b700b251111d7c0cb09d2b99ec0bfaa180b54e (diff)
downloadqpid-python-1c5601630dbac0540f96a9bcddb78c830f00ce11.tar.gz
QPID-1963: hold lock across TopicExchange::isBound() method
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@790164 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/src/qpid/broker/TopicExchange.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/broker/TopicExchange.cpp b/qpid/cpp/src/qpid/broker/TopicExchange.cpp
index 85c7a6a28e..4a22d91839 100644
--- a/qpid/cpp/src/qpid/broker/TopicExchange.cpp
+++ b/qpid/cpp/src/qpid/broker/TopicExchange.cpp
@@ -322,6 +322,7 @@ void TopicExchange::route(Deliverable& msg, const string& routingKey, const Fiel
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);