0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-28 15:53:46 +02:00

ircd:Ⓜ️:homeserver: Bail from ctor if the database remains empty after bootstrap.

This commit is contained in:
Jason Volk 2020-09-27 15:43:00 -07:00
parent 1276717be3
commit bae534d56b

View file

@ -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)