From a90191792e16750a21348e4d03cfbfd0564e7dc6 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 14 Sep 2020 19:02:37 -0700 Subject: [PATCH] ircd::m::homeserver: Adjust assertions to continue incomplete bootstrap. --- matrix/homeserver_bootstrap.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/matrix/homeserver_bootstrap.cc b/matrix/homeserver_bootstrap.cc index fa501e6d6..8938b5921 100644 --- a/matrix/homeserver_bootstrap.cc +++ b/matrix/homeserver_bootstrap.cc @@ -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