diff options
author | Alan Conway <aconway@apache.org> | 2009-01-28 20:48:23 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2009-01-28 20:48:23 +0000 |
commit | bea927aff631a66be6c8b509ceb22f676dcc2900 (patch) | |
tree | ea4e3f4bd4c0ff646a79278b179eaaafb69ef55e /cpp/src/qpid/cluster/Multicaster.cpp | |
parent | 56037de983e759c984836f52f4762420ae438748 (diff) | |
download | qpid-python-bea927aff631a66be6c8b509ceb22f676dcc2900.tar.gz |
Remove defunct --cluster-mcast-max optionn.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@738618 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Multicaster.cpp')
-rw-r--r-- | cpp/src/qpid/cluster/Multicaster.cpp | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/cpp/src/qpid/cluster/Multicaster.cpp b/cpp/src/qpid/cluster/Multicaster.cpp index 446722745c..239b3f5f35 100644 --- a/cpp/src/qpid/cluster/Multicaster.cpp +++ b/cpp/src/qpid/cluster/Multicaster.cpp @@ -28,14 +28,12 @@ namespace qpid { namespace cluster { -Multicaster::Multicaster(Cpg& cpg_, size_t mcastMax_, +Multicaster::Multicaster(Cpg& cpg_, const boost::shared_ptr<sys::Poller>& poller, boost::function<void()> onError_) : onError(onError_), cpg(cpg_), queue(boost::bind(&Multicaster::sendMcast, this, _1), poller), - holding(true), - mcastMax(mcastMax_), - pending(0) + holding(true) { queue.start(); } @@ -69,22 +67,10 @@ void Multicaster::sendMcast(PollableEventQueue::Queue& values) { try { PollableEventQueue::Queue::iterator i = values.begin(); while( i != values.end()) { - if (mcastMax) { - sys::Mutex::ScopedLock l(lock); - if (pending == mcastMax) { - queue.stop(); - break ; - } - ++pending; - } QPID_LATENCY_RECORD("mcast send queue", *i); iovec iov = i->toIovec(); if (!cpg.mcast(&iov, 1)) { // cpg didn't send because of CPG flow control. - if (mcastMax) { - sys::Mutex::ScopedLock l(lock); - --pending; - } break; } ++i; @@ -108,13 +94,6 @@ void Multicaster::release() { void Multicaster::selfDeliver(const Event& e) { sys::Mutex::ScopedLock l(lock); QPID_LATENCY_RECORD("cpg self deliver", e); - if (mcastMax) { - assert(pending > 0); - assert(pending <= mcastMax); - if (pending == mcastMax) - queue.start(); - --pending; - } } }} // namespace qpid::cluster |