From 1c5601630dbac0540f96a9bcddb78c830f00ce11 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 1 Jul 2009 13:47:54 +0000 Subject: 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 --- qpid/cpp/src/qpid/broker/TopicExchange.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qpid/cpp') 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); -- cgit v1.2.1