summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/Connection.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2009-11-09 11:50:39 +0000
committerGordon Sim <gsim@apache.org>2009-11-09 11:50:39 +0000
commitbb32d235be89547bb7e8621ce56c66e4dabdd43a (patch)
treeb71fe10c6b14aca106a62711791774cd40044ff4 /cpp/src/qpid/cluster/Connection.cpp
parent436e778182bafd5958f06f657d80d39072354755 (diff)
downloadqpid-python-bb32d235be89547bb7e8621ce56c66e4dabdd43a.tar.gz
QPID-2191: Fix browsing behaviour where messages may have been released out of order
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@834026 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Connection.cpp')
-rw-r--r--cpp/src/qpid/cluster/Connection.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/src/qpid/cluster/Connection.cpp b/cpp/src/qpid/cluster/Connection.cpp
index 6873827b81..841c3b610d 100644
--- a/cpp/src/qpid/cluster/Connection.cpp
+++ b/cpp/src/qpid/cluster/Connection.cpp
@@ -378,6 +378,7 @@ void Connection::deliveryRecord(const string& qname,
if (acquired) { // Message is on the update queue
m = getUpdateMessage();
m.queue = queue.get();
+ m.position = position;
if (enqueued) queue->enqueued(m); //inform queue of the message
} else { // Message at original position in original queue
m = queue->find(position);