Compare commits

...

2 Commits

Author SHA1 Message Date
Bart
ef3f85736b Merge branch 'develop' into bthomee/memory_dir 2026-06-09 13:35:44 -04:00
Bart
1fbc499b6e test: Do not create data directory for memory databases 2026-05-26 06:18:22 -04:00

View File

@@ -387,8 +387,12 @@ void
SHAMapStoreImp::dbPaths()
{
Section const section{app_.config().section(Sections::kNodeDatabase)};
boost::filesystem::path dbPath = get(section, Keys::kPath);
// Skip creating the directory when an in-memory database is used.
if (boost::iequals(get(section, Keys::kType), "memory"))
return;
boost::filesystem::path dbPath = get(section, Keys::kPath);
if (boost::filesystem::exists(dbPath))
{
if (!boost::filesystem::is_directory(dbPath))