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:
parent
14b7a088ee
commit
b5060a5e46
1 changed files with 5 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue