mirror of
https://github.com/matrix-construct/construct
synced 2025-02-18 09:40:12 +01:00
ircd:Ⓜ️:homeserver: Bail from ctor if the database remains empty after bootstrap.
This commit is contained in:
parent
1276717be3
commit
bae534d56b
1 changed files with 6 additions and 0 deletions
|
@ -267,6 +267,12 @@ try
|
|||
if(need_bootstrap)
|
||||
bootstrap();
|
||||
|
||||
// If the database is empty here there's nothing left to do; this is not
|
||||
// an error. When something tries to use this empty homeserver that is
|
||||
// where the error will be.
|
||||
if(sequence(*dbs::events) == 0)
|
||||
return;
|
||||
|
||||
mods::imports.emplace("net_dns_cache"s, "net_dns_cache"s);
|
||||
|
||||
if(!ircd::write_avoid)
|
||||
|
|
Loading…
Add table
Reference in a new issue