From 33db3cab8c1ec8d82045e557b190a98a2418c565 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Fri, 18 Nov 2011 21:01:17 +0000 Subject: QPID-3180: Further fix to the size checking logic for ring queues git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1203835 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/QueuePolicy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp') diff --git a/cpp/src/qpid/broker/QueuePolicy.cpp b/cpp/src/qpid/broker/QueuePolicy.cpp index 0c245700af..dafcf92a63 100644 --- a/cpp/src/qpid/broker/QueuePolicy.cpp +++ b/cpp/src/qpid/broker/QueuePolicy.cpp @@ -285,7 +285,7 @@ bool RingQueuePolicy::checkLimit(boost::intrusive_ptr m) << ": oldest message (seq-no=" << oldest.position << ") has been delivered but not yet acknowledged or requeued"); return false; } - } while (haveSpace < m->contentSize()); + } while (getMaxSize() && haveSpace < m->contentSize()); return true; -- cgit v1.2.1