From a86c15588f403dcc50613061b5e8cc5a18e9062d Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 7 Jan 2009 20:50:35 +0000 Subject: Ensure that if no store is loaded we don't flow to disk, but revert to rejecting messages. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@732482 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/MessageStoreModule.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cpp/src/qpid/broker/MessageStoreModule.cpp') diff --git a/cpp/src/qpid/broker/MessageStoreModule.cpp b/cpp/src/qpid/broker/MessageStoreModule.cpp index 20f5b98b6b..96186d508b 100644 --- a/cpp/src/qpid/broker/MessageStoreModule.cpp +++ b/cpp/src/qpid/broker/MessageStoreModule.cpp @@ -20,6 +20,7 @@ */ #include "MessageStoreModule.h" +#include "NullMessageStore.h" #include // This transfer protects against the unloading of the store lib prior to the handling of the exception @@ -165,4 +166,9 @@ void MessageStoreModule::collectPreparedXids(std::set& xids) TRANSFER_EXCEPTION(store->collectPreparedXids(xids)); } +bool MessageStoreModule::isNull() const +{ + return NullMessageStore::isNullStore(store); +} + }} // namespace qpid::broker -- cgit v1.2.1