summaryrefslogtreecommitdiff
path: root/cpp/lib/broker/BrokerQueue.cpp
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
commit14f06747d5d7bc6cde5efc54003624129d295956 (patch)
tree28b2a9764c2ad9e5e4e91bf67ced5bb778b09f9b /cpp/lib/broker/BrokerQueue.cpp
parent06f28d4054b259b95be0cb2862fcd78010e5a905 (diff)
downloadqpid-python-14f06747d5d7bc6cde5efc54003624129d295956.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/qpid@481261 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/broker/BrokerQueue.cpp')
-rw-r--r--cpp/lib/broker/BrokerQueue.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/lib/broker/BrokerQueue.cpp b/cpp/lib/broker/BrokerQueue.cpp
index 051b9d1e0f..4eabfdec50 100644
--- a/cpp/lib/broker/BrokerQueue.cpp
+++ b/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){