From 5e8ccd2a9ab02c167d96b61bc85af3949351dd22 Mon Sep 17 00:00:00 2001 From: Kenneth Anthony Giusti Date: Thu, 2 Feb 2012 23:46:35 +0000 Subject: QPID-3804: do not skip released grouped messages git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1239939 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/MessageGroupManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src') diff --git a/cpp/src/qpid/broker/MessageGroupManager.cpp b/cpp/src/qpid/broker/MessageGroupManager.cpp index 7054ef0310..0aef732e54 100644 --- a/cpp/src/qpid/broker/MessageGroupManager.cpp +++ b/cpp/src/qpid/broker/MessageGroupManager.cpp @@ -210,7 +210,7 @@ bool MessageGroupManager::nextConsumableMessage( Consumer::shared_ptr& c, Queued next.position = c->getPosition(); if (!freeGroups.empty()) { const framing::SequenceNumber& nextFree = freeGroups.begin()->first; - if (nextFree < next.position) { // a free message is older than current + if (nextFree <= next.position) { // take oldest free next.position = nextFree; --next.position; } -- cgit v1.2.1