Asserting if mdb_environment didn't open because nothing will work after that.

This commit is contained in:
clemahieu 2018-11-10 12:08:21 -06:00
commit 9ac938b4e3

View file

@ -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