diff options
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; |