diff options
author | Alan Conway <aconway@apache.org> | 2012-01-19 23:07:45 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2012-01-19 23:07:45 +0000 |
commit | cd899c3162517aac1ebaf2f07d04020b6df4eda7 (patch) | |
tree | a9483f27b8141a1c4508f3a45410aa0f199fe716 | |
parent | c167f61280bdf7349cb822d5326ec0de2d3ea067 (diff) | |
download | qpid-python-cd899c3162517aac1ebaf2f07d04020b6df4eda7.tar.gz |
QPID-3603: Replace public broker::Consumer::position variable with get/set function pair.
Done for the new HA work, but this is better practice in any case.
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/qpid-3603-2@1233676 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/cpp/src/qpid/broker/Queue.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qpid/cpp/src/qpid/broker/Queue.cpp b/qpid/cpp/src/qpid/broker/Queue.cpp index 4298e14627..89a1839763 100644 --- a/qpid/cpp/src/qpid/broker/Queue.cpp +++ b/qpid/cpp/src/qpid/broker/Queue.cpp @@ -302,8 +302,7 @@ Queue::ConsumeCode Queue::consumeNextMessage(QueuedMessage& m, Consumer::shared_ if (allocator->nextConsumableMessage(c, msg)) { if (msg.payload->hasExpired()) { QPID_LOG(debug, "Message expired from queue '" << name << "'"); - c->setPosition(msg.position) - ; + c->setPosition(msg.position); dequeue(0, msg); continue; } |