diff --git a/src/xrpld/app/misc/SHAMapStoreImp.cpp b/src/xrpld/app/misc/SHAMapStoreImp.cpp index fc3f71c0cc..d169aaa8ac 100644 --- a/src/xrpld/app/misc/SHAMapStoreImp.cpp +++ b/src/xrpld/app/misc/SHAMapStoreImp.cpp @@ -368,8 +368,12 @@ void SHAMapStoreImp::dbPaths() { Section const section{app_.config().section(ConfigSection::nodeDatabase())}; - boost::filesystem::path dbPath = get(section, "path"); + // Skip creating the directory when an in-memory database is used. + if (boost::iequals(get(section, "type"), "memory")) + return; + + boost::filesystem::path dbPath = get(section, "path"); if (boost::filesystem::exists(dbPath)) { if (!boost::filesystem::is_directory(dbPath))