summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorKim van der Riet <kpvdr@apache.org>2010-02-02 15:50:56 +0000
committerKim van der Riet <kpvdr@apache.org>2010-02-02 15:50:56 +0000
commita77d4284486302237125103a727dc4ff9998a1e1 (patch)
treee86b10af284691ad7041aa587bb7b10636bc9f6e /cpp
parent3a75d755f87a495ae02bdf69af6723c62584b190 (diff)
downloadqpid-python-a77d4284486302237125103a727dc4ff9998a1e1.tar.gz
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/qpid@905680 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/qpid/cluster/StoreStatus.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/qpid/cluster/StoreStatus.cpp b/cpp/src/qpid/cluster/StoreStatus.cpp
index d38f051cc8..cf75cd3b5f 100644
--- a/cpp/src/qpid/cluster/StoreStatus.cpp
+++ b/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);