summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/ha/ReplicatingSubscription.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2012-09-11 15:35:01 +0000
committerAlan Conway <aconway@apache.org>2012-09-11 15:35:01 +0000
commitfa4485993c1a0c2b691918ddfaa6748fa4b50971 (patch)
treeaab034840aa77f69a04089b8173054dc51ea9869 /cpp/src/qpid/ha/ReplicatingSubscription.cpp
parent03fbf27d2f43a039263cf04448951e49d4c21f1c (diff)
downloadqpid-python-fa4485993c1a0c2b691918ddfaa6748fa4b50971.tar.gz
NO-JIRA: Correct bug in ReplicatingSubscription::getNext - find next message *after* position.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1383453 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/ha/ReplicatingSubscription.cpp')
-rw-r--r--cpp/src/qpid/ha/ReplicatingSubscription.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/ha/ReplicatingSubscription.cpp b/cpp/src/qpid/ha/ReplicatingSubscription.cpp
index 6f7519cd1f..4be737e025 100644
--- a/cpp/src/qpid/ha/ReplicatingSubscription.cpp
+++ b/cpp/src/qpid/ha/ReplicatingSubscription.cpp
@@ -99,10 +99,10 @@ bool getSequence(const Message& message, SequenceNumber& result)
}
}
bool ReplicatingSubscription::getNext(
- broker::Queue& q, SequenceNumber from, SequenceNumber& result)
+ broker::Queue& q, SequenceNumber position, SequenceNumber& result)
{
QueueCursor cursor(REPLICATOR);
- return q.seek(cursor, boost::bind(&getSequence, _1, boost::ref(result)), from);
+ return q.seek(cursor, boost::bind(&getSequence, _1, boost::ref(result)), position+1);
}
bool ReplicatingSubscription::getFront(broker::Queue& q, SequenceNumber& front) {