Asserting if mdb_environment didn't open because nothing will work after that.
This commit is contained in:
parent
037c79659c
commit
9ac938b4e3
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ rai::mdb_env::mdb_env (bool & error_a, boost::filesystem::path const & path_a, i
|
|||
// It seems if there's ever more threads than mdb_env_set_maxreaders has read slots available, we get failures on transaction creation unless MDB_NOTLS is specified
|
||||
// This can happen if something like 256 io_threads are specified in the node config
|
||||
auto status4 (mdb_env_open (environment, path_a.string ().c_str (), MDB_NOSUBDIR | MDB_NOTLS, 00600));
|
||||
release_assert (status4 == 0);
|
||||
error_a = status4 != 0;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue