diff options
author | Gordon Sim <gsim@apache.org> | 2011-11-18 21:01:17 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2011-11-18 21:01:17 +0000 |
commit | 33db3cab8c1ec8d82045e557b190a98a2418c565 (patch) | |
tree | b22228bb67faf1b7d25391439cbf99a7b539e710 /cpp/src | |
parent | 4dac5a6be597f9eefbccd1121a61fe190072a47d (diff) | |
download | qpid-python-33db3cab8c1ec8d82045e557b190a98a2418c565.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.cpp | 2 |
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; |