summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2011-11-18 21:01:17 +0000
committerGordon Sim <gsim@apache.org>2011-11-18 21:01:17 +0000
commit02b2ee2b7d48d99d522dba2817841894411c4eb0 (patch)
treeb22228bb67faf1b7d25391439cbf99a7b539e710 /cpp/src
parent3c30eca6c5ab84641daec05a514474310e97363e (diff)
downloadqpid-python-02b2ee2b7d48d99d522dba2817841894411c4eb0.tar.gz
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
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/broker/QueuePolicy.cpp2
1 files changed, 1 insertions, 1 deletions
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<Message> 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;