summaryrefslogtreecommitdiff
path: root/qpid/cpp/lib
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2006-12-01 15:14:01 +0000
committerGordon Sim <gsim@apache.org>2006-12-01 15:14:01 +0000
commit2dc2ee79dbc59af9af6103d3cfa4d5435b911d12 (patch)
treed4798b1d1adbf73269eb1df467bc2cf5e4a5645c /qpid/cpp/lib
parent9d6db01fc03225403d3e3b00e93b3060ec1c3d1c (diff)
downloadqpid-python-2dc2ee79dbc59af9af6103d3cfa4d5435b911d12.tar.gz
Modification to ensure lazy loading is setup correctly where required on recovery.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@481261 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/lib')
-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){