From 461c4a0b9f56fdb7f0bc012468cce5dceaed80cb Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Thu, 7 Mar 2013 13:02:06 -0800 Subject: [PATCH] Allow --load to work with -a. --- src/cpp/ripple/Application.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cpp/ripple/Application.cpp b/src/cpp/ripple/Application.cpp index 4c07f2b2e8..cc417257ca 100644 --- a/src/cpp/ripple/Application.cpp +++ b/src/cpp/ripple/Application.cpp @@ -26,7 +26,9 @@ Application* theApp = NULL; DatabaseCon::DatabaseCon(const std::string& strName, const char *initStrings[], int initCount) { - boost::filesystem::path pPath = theConfig.RUN_STANDALONE ? "" : theConfig.DATA_DIR / strName; + boost::filesystem::path pPath = theConfig.RUN_STANDALONE && !Config::LOAD + ? "" // Use temporary files. + : theConfig.DATA_DIR / strName; // Use regular db files. mDatabase = new SqliteDatabase(pPath.string().c_str()); mDatabase->connect();