From 27e5e1b49cec739ee9d27ebe8b7d3a91c0f46744 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 4 Jun 2008 15:46:00 +0000 Subject: Change to lazy-loading to avoid relying on the content-size to be set by client. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@663243 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/SemanticState.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cpp/src/qpid/broker/SemanticState.cpp') diff --git a/cpp/src/qpid/broker/SemanticState.cpp b/cpp/src/qpid/broker/SemanticState.cpp index b3167d0377..ad617c1bc1 100644 --- a/cpp/src/qpid/broker/SemanticState.cpp +++ b/cpp/src/qpid/broker/SemanticState.cpp @@ -370,6 +370,9 @@ void SemanticState::route(intrusive_ptr msg, Deliverable& strategy) { if (cacheExchange->getAlternate()) { cacheExchange->getAlternate()->route(strategy, msg->getRoutingKey(), msg->getApplicationHeaders()); } + if (!strategy.delivered) { + msg->destroy(); + } } } -- cgit v1.2.1