summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/Queue.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2012-10-11 19:23:30 +0000
committerAlan Conway <aconway@apache.org>2012-10-11 19:23:30 +0000
commit0963c9f7a673b480cb26fc91215f48ddc5d7f769 (patch)
tree671688b468e37522d609de05a3dce06faeaad98b /cpp/src/qpid/broker/Queue.cpp
parent7bc3da30bd8206d606620bc427e3d2d7a832e72e (diff)
downloadqpid-python-0963c9f7a673b480cb26fc91215f48ddc5d7f769.tar.gz
Bug 860701 - QPID-4350: HA handle auto-delete queues
Subscribed auto-delete queues are deleted by the backup. Timed auto-delete queues are deleted after the timeout. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1397243 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Queue.cpp')
-rw-r--r--cpp/src/qpid/broker/Queue.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/Queue.cpp b/cpp/src/qpid/broker/Queue.cpp
index 95cba7bd8e..9cf2f541ce 100644
--- a/cpp/src/qpid/broker/Queue.cpp
+++ b/cpp/src/qpid/broker/Queue.cpp
@@ -1072,6 +1072,8 @@ void Queue::destroyed()
notifyDeleted();
{
Mutex::ScopedLock lock(messageLock);
+ for_each(observers.begin(), observers.end(),
+ boost::bind(&QueueObserver::destroy, _1));
observers.clear();
}
}