Author: aconway
Date: Thu Jan 19 23:07:45 2012
New Revision: 1233676
URL: http://svn.apache.org/viewvc?rev=1233676&view=rev
Log:
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.
Modified:
qpid/branches/qpid-3603-2/qpid/cpp/src/qpid/broker/Queue.cpp
Modified: qpid/branches/qpid-3603-2/qpid/cpp/src/qpid/broker/Queue.cpp
URL:
http://svn.apache.org/viewvc/qpid/branches/qpid-3603-2/qpid/cpp/src/qpid/broker/Queue.cpp?rev=1233676&r1=1233675&r2=1233676&view=diff
==============================================================================
--- qpid/branches/qpid-3603-2/qpid/cpp/src/qpid/broker/Queue.cpp (original)
+++ qpid/branches/qpid-3603-2/qpid/cpp/src/qpid/broker/Queue.cpp Thu Jan 19
23:07:45 2012
@@ -302,8 +302,7 @@ Queue::ConsumeCode Queue::consumeNextMes
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;
}
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]