qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kgiu...@apache.org
Subject svn commit: r1156188 - /qpid/trunk/qpid/cpp/src/qpid/broker/Fairshare.cpp
Date Wed, 10 Aug 2011 13:58:27 GMT
Author: kgiusti
Date: Wed Aug 10 13:58:27 2011
New Revision: 1156188

URL: http://svn.apache.org/viewvc?rev=1156188&view=rev
Log:
QPID-3410: do not create priority queue if priority count zero or not provided.

Modified:
    qpid/trunk/qpid/cpp/src/qpid/broker/Fairshare.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/broker/Fairshare.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/Fairshare.cpp?rev=1156188&r1=1156187&r2=1156188&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/Fairshare.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/Fairshare.cpp Wed Aug 10 13:58:27 2011
@@ -173,7 +173,7 @@ std::auto_ptr<Messages> Fairshare::creat
 {
     using boost::assign::list_of;
     std::auto_ptr<Messages> result;
-    size_t levels = getSetting(settings, list_of<std::string>("qpid.priorities")("x-qpid-priorities"),
1, 100);
+    size_t levels = getSetting(settings, list_of<std::string>("qpid.priorities")("x-qpid-priorities"),
0, 100);
     if (levels) {
         std::auto_ptr<Fairshare> fairshare =
             getFairshare(settings, levels, list_of<std::string>("qpid.fairshare")("x-qpid-fairshare"));



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


Mime
View raw message