diff options
| author | Gordon Sim <gsim@apache.org> | 2006-12-08 10:36:32 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2006-12-08 10:36:32 +0000 |
| commit | 4ae1d1c3b00d5560f66c86f781c257cb931a7094 (patch) | |
| tree | bc6822e5f5d19ada8e261ee9b03e95657013ff8f /qpid/cpp/lib | |
| parent | 7de38b8a72abd599681e020b9a68c036f1f2097e (diff) | |
| download | qpid-python-4ae1d1c3b00d5560f66c86f781c257cb931a7094.tar.gz | |
Some more unit tests.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@483916 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/lib')
| -rw-r--r-- | qpid/cpp/lib/broker/BrokerQueue.cpp | 2 | ||||
| -rw-r--r-- | qpid/cpp/lib/broker/InMemoryContent.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/qpid/cpp/lib/broker/BrokerQueue.cpp b/qpid/cpp/lib/broker/BrokerQueue.cpp index bfea1918a4..0e48d3b13d 100644 --- a/qpid/cpp/lib/broker/BrokerQueue.cpp +++ b/qpid/cpp/lib/broker/BrokerQueue.cpp @@ -65,6 +65,8 @@ void Queue::deliver(Message::shared_ptr& msg){ void Queue::recover(Message::shared_ptr& msg){ push(msg); if (store && msg->expectedContentSize() != msg->encodedContentSize()) { + //content has not been loaded, need to ensure that lazy loading mode is set: + //TODO: find a nicer way to do this msg->releaseContent(store); } } diff --git a/qpid/cpp/lib/broker/InMemoryContent.cpp b/qpid/cpp/lib/broker/InMemoryContent.cpp index 7205eb3de0..8826b42d2c 100644 --- a/qpid/cpp/lib/broker/InMemoryContent.cpp +++ b/qpid/cpp/lib/broker/InMemoryContent.cpp @@ -33,8 +33,7 @@ u_int32_t InMemoryContent::size() { int sum(0); for (content_iterator i = content.begin(); i != content.end(); i++) { - sum += (*i)->size() + 8;//8 extra bytes for the frame - //TODO: have to get rid of the frame stuff from encoded data + sum += (*i)->size(); } return sum; } |
