diff options
| author | Gordon Sim <gsim@apache.org> | 2006-11-07 11:26:50 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2006-11-07 11:26:50 +0000 |
| commit | c2a8f493b4d87c71dc04a432e686e2d9151a393f (patch) | |
| tree | 1bb137e50aa711e6ead9e70e9117f04916b32b07 /cpp/src/qpid/broker/SessionHandlerFactoryImpl.cpp | |
| parent | e4ec69544d05f04c64b92d85905978495c1aee77 (diff) | |
| download | qpid-python-c2a8f493b4d87c71dc04a432e686e2d9151a393f.tar.gz | |
Made passing of transaction context in message store explicit (to avoid thread local storage in case this doesn't fit with new io design).
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@472067 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/SessionHandlerFactoryImpl.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/SessionHandlerFactoryImpl.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpp/src/qpid/broker/SessionHandlerFactoryImpl.cpp b/cpp/src/qpid/broker/SessionHandlerFactoryImpl.cpp index 8d4f955270..707881b6bb 100644 --- a/cpp/src/qpid/broker/SessionHandlerFactoryImpl.cpp +++ b/cpp/src/qpid/broker/SessionHandlerFactoryImpl.cpp @@ -16,10 +16,12 @@ * */ #include "qpid/broker/SessionHandlerFactoryImpl.h" -#include "qpid/broker/SessionHandlerImpl.h" + +#include "qpid/broker/DirectExchange.h" #include "qpid/broker/FanOutExchange.h" #include "qpid/broker/HeadersExchange.h" -#include "qpid/broker/DirectExchange.h" +#include "qpid/broker/NullMessageStore.h" +#include "qpid/broker/SessionHandlerImpl.h" using namespace qpid::broker; using namespace qpid::sys; @@ -34,7 +36,7 @@ const std::string amq_match("amq.match"); } SessionHandlerFactoryImpl::SessionHandlerFactoryImpl(u_int32_t _timeout) : - queues(store.get()), timeout(_timeout), cleaner(&queues, timeout/10) + store(new NullMessageStore()), queues(store.get()), timeout(_timeout), cleaner(&queues, timeout/10) { exchanges.declare(empty, DirectExchange::typeName); // Default exchange. exchanges.declare(amq_direct, DirectExchange::typeName); |
