summaryrefslogtreecommitdiff
path: root/qpid/cpp/lib/broker/BrokerQueue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp/lib/broker/BrokerQueue.cpp')
-rw-r--r--qpid/cpp/lib/broker/BrokerQueue.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qpid/cpp/lib/broker/BrokerQueue.cpp b/qpid/cpp/lib/broker/BrokerQueue.cpp
index 051b9d1e0f..4eabfdec50 100644
--- a/qpid/cpp/lib/broker/BrokerQueue.cpp
+++ b/qpid/cpp/lib/broker/BrokerQueue.cpp
@@ -64,6 +64,9 @@ void Queue::deliver(Message::shared_ptr& msg){
void Queue::recover(Message::shared_ptr& msg){
queueing = true;
messages.push(msg);
+ if (store && msg->expectedContentSize() != msg->encodedContentSize()) {
+ msg->releaseContent(store);
+ }
}
void Queue::process(Message::shared_ptr& msg){