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:
parent
4013c4cb23
commit
7d6180dd23
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue