qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1203835 - /qpid/trunk/qpid/cpp/src/qpid/broker/QueuePolicy.cpp
Date Fri, 18 Nov 2011 21:01:17 GMT
Author: gsim
Date: Fri Nov 18 21:01:17 2011
New Revision: 1203835

URL: http://svn.apache.org/viewvc?rev=1203835&view=rev
Log:
QPID-3180: Further fix to the size checking logic for ring queues

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=1203835&r1=1203834&r2=1203835&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/QueuePolicy.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/QueuePolicy.cpp Fri Nov 18 21:01:17 2011
@@ -285,7 +285,7 @@ bool RingQueuePolicy::checkLimit(boost::
                      << ": 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;



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message