From a9e610f6c3fba62c115d74f6a399aba540df3ea7 Mon Sep 17 00:00:00 2001 From: Kim van der Riet Date: Tue, 2 Feb 2010 15:50:56 +0000 Subject: QPID-2384: Fix for problem of cluster nodes recovering from both cluster and store when --no-data-dir and --store-dir are in use together. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@905680 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/cluster/StoreStatus.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qpid/cpp') diff --git a/qpid/cpp/src/qpid/cluster/StoreStatus.cpp b/qpid/cpp/src/qpid/cluster/StoreStatus.cpp index d38f051cc8..cf75cd3b5f 100644 --- a/qpid/cpp/src/qpid/cluster/StoreStatus.cpp +++ b/qpid/cpp/src/qpid/cluster/StoreStatus.cpp @@ -79,7 +79,9 @@ framing::SequenceNumber loadSeqNum(const fs::path& path) { void StoreStatus::load() { - if (dataDir.empty()) return; + if (dataDir.empty()) { + throw Exception(QPID_MSG("No data-dir: When a store is loaded together with clustering, --data-dir must be specified.")); + } fs::path dir = fs::path(dataDir, fs::native)/SUBDIR; try { create_directory(dir); -- cgit v1.2.1