From 558e92d6c9cf8dfb875c1250ab8fe1cefaf30b05 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Sun, 21 Sep 2008 05:04:04 +0000 Subject: DumpClient send connections & session IDs to new members. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@697446 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/OutputInterceptor.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'cpp/src/qpid/cluster/OutputInterceptor.cpp') diff --git a/cpp/src/qpid/cluster/OutputInterceptor.cpp b/cpp/src/qpid/cluster/OutputInterceptor.cpp index 8718154d3e..4424864787 100644 --- a/cpp/src/qpid/cluster/OutputInterceptor.cpp +++ b/cpp/src/qpid/cluster/OutputInterceptor.cpp @@ -39,13 +39,18 @@ OutputInterceptor::OutputInterceptor(cluster::Connection& p, sys::ConnectionOutp void OutputInterceptor::send(framing::AMQFrame& f) { Locker l(lock); next->send(f); - sent += f.size(); + if (!parent.isCatchUp()) + sent += f.size(); } void OutputInterceptor::activateOutput() { - Locker l(lock); - moreOutput = true; - sendDoOutput(); + Locker l(lock); + if (parent.isCatchUp()) + next->activateOutput(); + else { + moreOutput = true; + sendDoOutput(); + } } // Called in write thread when the IO layer has no more data to write. -- cgit v1.2.1