From 78bb6d6ffe9ed3e61a1e0e7c8dc4bf26a5e33802 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/qpid@790164 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/TopicExchange.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'cpp/src') diff --git a/cpp/src/qpid/broker/TopicExchange.cpp b/cpp/src/qpid/broker/TopicExchange.cpp index 85c7a6a28e..4a22d91839 100644 --- a/cpp/src/qpid/broker/TopicExchange.cpp +++ b/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