diff options
| author | Gordon Sim <gsim@apache.org> | 2008-06-04 15:46:00 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2008-06-04 15:46:00 +0000 |
| commit | 27e5e1b49cec739ee9d27ebe8b7d3a91c0f46744 (patch) | |
| tree | 169c8443d3befc7d920293706a5d41fc4678460e /cpp/src/qpid/broker/SemanticState.cpp | |
| parent | 7610aec25ece167833b206a6866c5a5ade2aaee1 (diff) | |
| download | qpid-python-27e5e1b49cec739ee9d27ebe8b7d3a91c0f46744.tar.gz | |
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
Diffstat (limited to 'cpp/src/qpid/broker/SemanticState.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/SemanticState.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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<Message> msg, Deliverable& strategy) { if (cacheExchange->getAlternate()) { cacheExchange->getAlternate()->route(strategy, msg->getRoutingKey(), msg->getApplicationHeaders()); } + if (!strategy.delivered) { + msg->destroy(); + } } } |
