0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-07 12:38:56 +02:00

modules/m_init_backfill: Bypass initial backfill on read_only/write_avoid.

This commit is contained in:
Jason Volk 2019-08-24 18:49:27 -07:00
parent 4013c4cb23
commit 7d6180dd23

View file

@ -60,6 +60,17 @@ ircd::m::init::backfill::init()
return;
}
if(ircd::read_only || ircd::write_avoid)
{
log::warning
{
log, "Initial synchronization of rooms from remote servers has"
" been disabled by the configuration to avoid write operations."
};
return;
}
assert(!worker_context);
worker_context.reset(new context
{