From 1e56a289bfb74eb06f90bbd592fde6d9799b1df8 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Fri, 1 Apr 2011 12:05:04 +0000 Subject: QPID-3180: fix ring queues for the case where max size is 0 (implying infinite size) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1087669 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/broker/QueuePolicy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qpid/cpp') diff --git a/qpid/cpp/src/qpid/broker/QueuePolicy.cpp b/qpid/cpp/src/qpid/broker/QueuePolicy.cpp index b39ea3614b..a93a6332fd 100644 --- a/qpid/cpp/src/qpid/broker/QueuePolicy.cpp +++ b/qpid/cpp/src/qpid/broker/QueuePolicy.cpp @@ -246,7 +246,7 @@ bool RingQueuePolicy::checkLimit(boost::intrusive_ptr m) { // If the message is bigger than the queue size, give up - if (m->contentSize() > getMaxSize()) { + if (getMaxSize() && m->contentSize() > getMaxSize()) { QPID_LOG(debug, "Message too large for ring queue " << name << " [" << *this << "] " << ": message size = " << m->contentSize() << " bytes" -- cgit v1.2.1