From 889afd0cbdaef8c2d575a5908a25bb9cf2a5b22e Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Thu, 10 Dec 2015 12:57:42 -0500 Subject: [PATCH] Don't check free disk space in stand-alone mode. --- src/ripple/app/main/Application.cpp | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/ripple/app/main/Application.cpp b/src/ripple/app/main/Application.cpp index 085879ffd..6ed19ddbd 100644 --- a/src/ripple/app/main/Application.cpp +++ b/src/ripple/app/main/Application.cpp @@ -847,15 +847,18 @@ public: { // VFALCO TODO Move all this into doSweep - boost::filesystem::space_info space = - boost::filesystem::space (config_->legacy ("database_path")); - - // VFALCO TODO Give this magic constant a name and move it into a well documented header - // - if (space.available < (512 * 1024 * 1024)) + if (! config_->RUN_STANDALONE) { - m_journal.fatal << "Remaining free disk space is less than 512MB"; - signalStop (); + boost::filesystem::space_info space = + boost::filesystem::space (config_->legacy ("database_path")); + + // VFALCO TODO Give this magic constant a name and move it into a well documented header + // + if (space.available < (512 * 1024 * 1024)) + { + m_journal.fatal << "Remaining free disk space is less than 512MB"; + signalStop (); + } } m_jobQueue->addJob(jtSWEEP, "sweep", [this] (Job&) { doSweep(); });