From 9c00a0a3ecc8139c567b74738f7cfd4cd2ec6bc5 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 30 Mar 2010 20:57:22 +0000 Subject: Fix hanging failover_soak test. Explictly turn off PollableQueue bypass mode during initialize. Implicitly turning it off in PollableQueue::start() led to incorrectly turning off bypass in a PRE_INIT client when an offer was processed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@929276 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/Cluster.cpp | 2 ++ cpp/src/qpid/cluster/PollableQueue.h | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'cpp/src/qpid/cluster') diff --git a/cpp/src/qpid/cluster/Cluster.cpp b/cpp/src/qpid/cluster/Cluster.cpp index 83ebbcc2e6..258460fe8f 100644 --- a/cpp/src/qpid/cluster/Cluster.cpp +++ b/cpp/src/qpid/cluster/Cluster.cpp @@ -319,7 +319,9 @@ void Cluster::initialize() { broker.getKnownBrokers = boost::bind(&Cluster::getUrls, this); broker.setExpiryPolicy(expiryPolicy); dispatcher.start(); + deliverEventQueue.bypassOff(); deliverEventQueue.start(); + deliverFrameQueue.bypassOff(); deliverFrameQueue.start(); mcast.start(); diff --git a/cpp/src/qpid/cluster/PollableQueue.h b/cpp/src/qpid/cluster/PollableQueue.h index 59d0bcd36a..10e2ed6ac3 100644 --- a/cpp/src/qpid/cluster/PollableQueue.h +++ b/cpp/src/qpid/cluster/PollableQueue.h @@ -74,10 +74,7 @@ template class PollableQueue : public sys::PollableQueue { else sys::PollableQueue::push(t); } - void start() { - bypass = false; - sys::PollableQueue::start(); - } + void bypassOff() { bypass = false; } private: Callback callback; -- cgit v1.2.1