0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-09 13:38:55 +02:00

ircd:Ⓜ️:homeserver: Adjust assertions to continue incomplete bootstrap.

This commit is contained in:
Jason Volk 2020-09-14 19:02:37 -07:00
parent 439fb28854
commit a90191792e

View file

@ -17,13 +17,12 @@ void
ircd::m::homeserver::bootstrap()
try
{
assert(dbs::events);
assert(db::sequence(*dbs::events) == 0);
assert(opts);
assert(dbs::events);
if(opts->bootstrap_vector_path)
return bootstrap_event_vector(*this);
assert(db::sequence(*dbs::events) == 0);
assert(this->self);
const m::user::id &my_id
{
@ -189,6 +188,7 @@ void
ircd::m::bootstrap_event_vector(homeserver &homeserver)
try
{
assert(homeserver.opts);
const string_view &path
{
homeserver.opts->bootstrap_vector_path