0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-14 14:01:08 +01:00

ircd::db: Create specific DB dir manually to avoid rocksdb error log msg.

This commit is contained in:
Jason Volk 2018-04-02 17:19:01 -07:00
parent 14b7a088ee
commit b5060a5e46

View file

@ -379,6 +379,11 @@ try
columns.size());
}
// If the directory does not exist, though rocksdb will create it, we can
// avoid scaring the user with an error log message if we just do that..
if(opts.create_if_missing && !fs::is_dir(path))
fs::mkdir(path);
// Announce attempt before usual point where exceptions are thrown
log.debug("Opening database \"%s\" @ `%s' columns[%zu]",
this->name,