summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/MessageStoreModule.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2009-01-07 20:50:35 +0000
committerGordon Sim <gsim@apache.org>2009-01-07 20:50:35 +0000
commita86c15588f403dcc50613061b5e8cc5a18e9062d (patch)
tree64d81cd2635f110d18acf9b920ce6109ea7fb05a /cpp/src/qpid/broker/MessageStoreModule.cpp
parent816a99518e8f22b404b95975a415ce0daff21f2a (diff)
downloadqpid-python-a86c15588f403dcc50613061b5e8cc5a18e9062d.tar.gz
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
Diffstat (limited to 'cpp/src/qpid/broker/MessageStoreModule.cpp')
-rw-r--r--cpp/src/qpid/broker/MessageStoreModule.cpp6
1 files changed, 6 insertions, 0 deletions
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 <iostream>
// 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<std::string>& xids)
TRANSFER_EXCEPTION(store->collectPreparedXids(xids));
}
+bool MessageStoreModule::isNull() const
+{
+ return NullMessageStore::isNullStore(store);
+}
+
}} // namespace qpid::broker