From 1fbc499b6e8af7af8290fc1bbeac0b1e028d888c Mon Sep 17 00:00:00 2001 From: Bart <11445373+bthomee@users.noreply.github.com> Date: Tue, 26 May 2026 06:18:22 -0400 Subject: [PATCH] test: Do not create data directory for memory databases --- src/xrpld/app/misc/SHAMapStoreImp.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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))