From f2d0f0cfbfebb082e92f28b8d1b2987a0f20acf6 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 6 Dec 2006 17:51:42 +0000 Subject: Allow non-durable messages to be lazy-loaded. Cleanup of lazy-loaded messages that are never enqueued. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@483165 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/lib/broker/BrokerQueue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/lib/broker/BrokerQueue.cpp') diff --git a/cpp/lib/broker/BrokerQueue.cpp b/cpp/lib/broker/BrokerQueue.cpp index b0e1f20b01..a8c5343ca3 100644 --- a/cpp/lib/broker/BrokerQueue.cpp +++ b/cpp/lib/broker/BrokerQueue.cpp @@ -189,14 +189,14 @@ bool Queue::canAutoDelete() const{ void Queue::enqueue(TransactionContext* ctxt, Message::shared_ptr& msg, const string * const xid) { if (msg->isPersistent() && store) { - store->enqueue(ctxt, msg, *this, xid); + store->enqueue(ctxt, msg.get(), *this, xid); } } void Queue::dequeue(TransactionContext* ctxt, Message::shared_ptr& msg, const string * const xid) { if (msg->isPersistent() && store) { - store->dequeue(ctxt, msg, *this, xid); + store->dequeue(ctxt, msg.get(), *this, xid); } } -- cgit v1.2.1