From 5ee8574ae432294f56f60ced5cfde3082cfd2dba Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 6 Dec 2006 12:01:40 +0000 Subject: Added new configuration option for staging threshold (size above which messages will be written to disk as content arrives rather than accumulating that content in memory). Pass this through to all channels and to the store on recovery. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@483046 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/lib/broker/BrokerChannel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qpid/cpp/lib/broker/BrokerChannel.cpp') diff --git a/qpid/cpp/lib/broker/BrokerChannel.cpp b/qpid/cpp/lib/broker/BrokerChannel.cpp index 42e45dd291..9bbdcabfc9 100644 --- a/qpid/cpp/lib/broker/BrokerChannel.cpp +++ b/qpid/cpp/lib/broker/BrokerChannel.cpp @@ -31,7 +31,7 @@ using namespace qpid::framing; using namespace qpid::sys; -Channel::Channel(OutputHandler* _out, int _id, u_int32_t _framesize) : +Channel::Channel(OutputHandler* _out, int _id, u_int32_t _framesize, MessageStore* const _store, u_int64_t _stagingThreshold) : id(_id), out(_out), currentDeliveryTag(1), @@ -40,8 +40,8 @@ Channel::Channel(OutputHandler* _out, int _id, u_int32_t _framesize) : prefetchCount(0), framesize(_framesize), tagGenerator("sgen"), - store(0), - messageBuilder(this){ + store(_store), + messageBuilder(this, _store, _stagingThreshold){ outstanding.reset(); } -- cgit v1.2.1