summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/ClusterTimer.cpp
diff options
context:
space:
mode:
authorKen Giusti <kgiusti@apache.org>2012-03-20 17:36:54 +0000
committerKen Giusti <kgiusti@apache.org>2012-03-20 17:36:54 +0000
commitf73a9bf9479fc0ada436eee653e99b38c002d5d5 (patch)
tree0346f32d1357f94a866ecd3ff978ac2973a2113c /cpp/src/qpid/cluster/ClusterTimer.cpp
parent8316cafc88687620cf4cf19b72ef48fff994d8b3 (diff)
downloadqpid-python-f73a9bf9479fc0ada436eee653e99b38c002d5d5.tar.gz
QPID-3896: assign each queue auto deletion task a unique name.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1303035 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/ClusterTimer.cpp')
-rw-r--r--cpp/src/qpid/cluster/ClusterTimer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/qpid/cluster/ClusterTimer.cpp b/cpp/src/qpid/cluster/ClusterTimer.cpp
index b4f7d00f38..90e4fa9d4d 100644
--- a/cpp/src/qpid/cluster/ClusterTimer.cpp
+++ b/cpp/src/qpid/cluster/ClusterTimer.cpp
@@ -24,6 +24,7 @@
#include "qpid/log/Statement.h"
#include "qpid/framing/ClusterTimerWakeupBody.h"
#include "qpid/framing/ClusterTimerDropBody.h"
+#include "qpid/sys/ClusterSafe.h"
namespace qpid {
namespace cluster {
@@ -107,6 +108,7 @@ void ClusterTimer::drop(intrusive_ptr<TimerTask> t) {
// Deliver thread
void ClusterTimer::deliverWakeup(const std::string& name) {
QPID_LOG(trace, "Cluster timer wakeup delivered for " << name);
+ qpid::sys::assertClusterSafe();
Map::iterator i = map.find(name);
if (i == map.end())
throw Exception(QPID_MSG("Cluster timer wakeup non-existent task " << name));