From bf70c3a435b5198e48cd83f692796bd47e253df1 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 29 Apr 2009 20:29:53 +0000 Subject: Improved & simplified cluster output algorithm. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@769914 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/Connection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src/qpid/cluster/Connection.cpp') diff --git a/cpp/src/qpid/cluster/Connection.cpp b/cpp/src/qpid/cluster/Connection.cpp index 97cafbabaa..c107552905 100644 --- a/cpp/src/qpid/cluster/Connection.cpp +++ b/cpp/src/qpid/cluster/Connection.cpp @@ -89,7 +89,7 @@ void Connection::init() { if (isLocalClient()) { connection.setClusterOrderOutput(mcastFrameHandler); // Actively send cluster-order frames from local node cluster.addLocalConnection(this); - giveReadCredit(cluster.getReadMax()); + giveReadCredit(cluster.getSettings().readMax); } else { // Shadow or catch-up connection connection.setClusterOrderOutput(nullFrameHandler); // Passive, discard cluster-order frames @@ -100,7 +100,7 @@ void Connection::init() { } void Connection::giveReadCredit(int credit) { - if (cluster.getReadMax() && credit) + if (cluster.getSettings().readMax && credit) output.giveReadCredit(credit); } -- cgit v1.2.1