diff options
author | Gordon Sim <gsim@apache.org> | 2008-11-05 21:12:54 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2008-11-05 21:12:54 +0000 |
commit | 359f60c318627900c3ac216496486c42d1a4df8a (patch) | |
tree | 879b78ce5d2cc1344f4840dbdbf83da66605ba47 /cpp/src/qpid/broker/QueuePolicy.cpp | |
parent | 06c6c1db04d562b6cad0293cb4c5f8e40dde7a19 (diff) | |
download | qpid-python-359f60c318627900c3ac216496486c42d1a4df8a.tar.gz |
Added ability to release messages through the Subscription class (+test)
Added another mode for managing completion (+test)
Fixed regression where bytes credit was not reallocated in windowing mode after an accept/release
Fixed regression where subscribe request is issued before listener is registered with dispatcher
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@711698 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/QueuePolicy.cpp')
-rw-r--r-- | cpp/src/qpid/broker/QueuePolicy.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/QueuePolicy.cpp b/cpp/src/qpid/broker/QueuePolicy.cpp index aefb87a392..c967823ecc 100644 --- a/cpp/src/qpid/broker/QueuePolicy.cpp +++ b/cpp/src/qpid/broker/QueuePolicy.cpp @@ -48,12 +48,16 @@ bool QueuePolicy::checkLimit(const QueuedMessage& m) if (exceeded) { if (!policyExceeded) { policyExceeded = true; - QPID_LOG(info, "Queue size exceeded policy for " << m.queue->getName()); + if (m.queue) { + QPID_LOG(info, "Queue size exceeded policy for " << m.queue->getName()); + } } } else { if (policyExceeded) { policyExceeded = false; - QPID_LOG(info, "Queue size within policy for " << m.queue->getName()); + if (m.queue) { + QPID_LOG(info, "Queue size within policy for " << m.queue->getName()); + } } } return !exceeded; |