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:
parent
453748c00a
commit
034e5871a7
1 changed files with 8 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue