You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kp...@apache.org on 2010/02/02 16:50:59 UTC

svn commit: r905680 - /qpid/trunk/qpid/cpp/src/qpid/cluster/StoreStatus.cpp

Author: kpvdr
Date: Tue Feb  2 15:50:56 2010
New Revision: 905680

URL: http://svn.apache.org/viewvc?rev=905680&view=rev
Log:
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.

Modified:
    qpid/trunk/qpid/cpp/src/qpid/cluster/StoreStatus.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/cluster/StoreStatus.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/cluster/StoreStatus.cpp?rev=905680&r1=905679&r2=905680&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/cluster/StoreStatus.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/cluster/StoreStatus.cpp Tue Feb  2 15:50:56 2010
@@ -79,7 +79,9 @@
 
 
 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);



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org