0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-01 05:08:59 +02: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,