0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 08:42:34 +01:00

ircd:Ⓜ️:homeserver: Add conditions to bootstrap.

This commit is contained in:
Jason Volk 2020-09-13 07:16:17 -07:00
parent 453748c00a
commit 034e5871a7

View file

@ -258,7 +258,14 @@ try
_vm.reset(nullptr);
}};
if(!ircd::write_avoid && dbs::events && sequence(*dbs::events) == 0)
const bool need_bootstrap
{
(sequence(*dbs::events) == 0 || opts->bootstrap_vector_path)
&& !ircd::write_avoid
&& dbs::events
};
if(need_bootstrap)
bootstrap();
mods::imports.emplace("net_dns_cache"s, "net_dns_cache"s);