diff options
author | Gordon Sim <gsim@apache.org> | 2007-10-17 08:59:44 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2007-10-17 08:59:44 +0000 |
commit | c619794e8a903e716bc5117179ea0ab1e24e1254 (patch) | |
tree | e4cf22d8de792053a4bb7b594b0e1cc2b2ca8abc /cpp/src/qpid/broker/MessageHandlerImpl.cpp | |
parent | de86223091817b091b8f49774853d927c00eed9b (diff) | |
download | qpid-python-c619794e8a903e716bc5117179ea0ab1e24e1254.tar.gz |
Use shared pointers for consumers (held by queues and sessions) to prevent having to hold lock across deliver() while avoiding invocation on stale pointers.
Ensure auto-deleted queues are properly cleaned up (i.e. are unbound from exchanges) to avoid leaking memory as messages are accumulated in inaccessible queues. (some cleanup to follow on this)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@585417 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/MessageHandlerImpl.cpp')
-rw-r--r-- | cpp/src/qpid/broker/MessageHandlerImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/MessageHandlerImpl.cpp b/cpp/src/qpid/broker/MessageHandlerImpl.cpp index e6c7b28a49..87b23102e2 100644 --- a/cpp/src/qpid/broker/MessageHandlerImpl.cpp +++ b/cpp/src/qpid/broker/MessageHandlerImpl.cpp @@ -17,6 +17,7 @@ */ #include "qpid/QpidError.h" +#include "qpid/log/Statement.h" #include "MessageHandlerImpl.h" #include "qpid/framing/FramingContent.h" #include "Connection.h" @@ -156,7 +157,6 @@ MessageHandlerImpl::reject(const SequenceNumberSet& transfers, uint16_t /*code*/ void MessageHandlerImpl::flow(const std::string& destination, u_int8_t unit, u_int32_t value) { - if (unit == 0) { //message state.addMessageCredit(destination, value); |