diff options
| author | Carl C. Trieloff <cctrieloff@apache.org> | 2007-11-08 18:46:53 +0000 |
|---|---|---|
| committer | Carl C. Trieloff <cctrieloff@apache.org> | 2007-11-08 18:46:53 +0000 |
| commit | d9ba9eae91290581b62f67239300897a96827e83 (patch) | |
| tree | 67ea6a18828a42cafea5fce43b36b8b5f7c5becf /cpp/src/qpid/broker/Message.cpp | |
| parent | 10a794c9d2fede2a0db9cf80e95f19d56e931196 (diff) | |
| download | qpid-python-d9ba9eae91290581b62f67239300897a96827e83.tar.gz | |
- enable the ability to lazy load from async store
- the ci has a raw ptr for Queue in QueuedMessage, if any has
any concerns, ping me and I will convert it to an auto_ptr
Carl.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@593251 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Message.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/Message.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/Message.cpp b/cpp/src/qpid/broker/Message.cpp index 6e3e6a55f7..4e075e73a3 100644 --- a/cpp/src/qpid/broker/Message.cpp +++ b/cpp/src/qpid/broker/Message.cpp @@ -150,7 +150,7 @@ void Message::releaseContent(MessageStore* _store) setContentReleased(); } -void Message::sendContent(framing::FrameHandler& out, uint16_t maxFrameSize) const +void Message::sendContent(Queue& queue, framing::FrameHandler& out, uint16_t maxFrameSize) const { if (isContentReleased()) { //load content from store in chunks of maxContentSize @@ -162,7 +162,7 @@ void Message::sendContent(framing::FrameHandler& out, uint16_t maxFrameSize) con AMQFrame frame(0, AMQContentBody()); string& data = frame.castBody<AMQContentBody>()->getData(); - store->loadContent(*this, data, offset, + store->loadContent(queue, *this, data, offset, remaining > maxContentSize ? maxContentSize : remaining); frame.setBof(false); frame.setEof(true); |
