mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-10 04:06:59 +00:00
test: Do not create data directory for memory databases (#7323)
Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com>
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user