diff options
| author | Alan Conway <aconway@apache.org> | 2008-09-21 05:04:04 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-09-21 05:04:04 +0000 |
| commit | 558e92d6c9cf8dfb875c1250ab8fe1cefaf30b05 (patch) | |
| tree | 9b306597ee07b264fa18580546ed5645f0c3766d /cpp/src/qpid/cluster/OutputInterceptor.cpp | |
| parent | 7c70d21ca2d788d4432cfa89851c9b928c9f30aa (diff) | |
| download | qpid-python-558e92d6c9cf8dfb875c1250ab8fe1cefaf30b05.tar.gz | |
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
Diffstat (limited to 'cpp/src/qpid/cluster/OutputInterceptor.cpp')
| -rw-r--r-- | cpp/src/qpid/cluster/OutputInterceptor.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
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. |
