Author: gsim Date: Fri Apr 1 12:05:04 2011 New Revision: 1087669 URL: http://svn.apache.org/viewvc?rev=1087669&view=rev Log: QPID-3180: fix ring queues for the case where max size is 0 (implying infinite size)
Modified: qpid/trunk/qpid/cpp/src/qpid/broker/QueuePolicy.cpp Modified: qpid/trunk/qpid/cpp/src/qpid/broker/QueuePolicy.cpp URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/QueuePolicy.cpp?rev=1087669&r1=1087668&r2=1087669&view=diff ============================================================================== --- qpid/trunk/qpid/cpp/src/qpid/broker/QueuePolicy.cpp (original) +++ qpid/trunk/qpid/cpp/src/qpid/broker/QueuePolicy.cpp Fri Apr 1 12:05:04 2011 @@ -246,7 +246,7 @@ bool RingQueuePolicy::checkLimit(boost:: { // 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" --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:commits-subscr...@qpid.apache.org