From 28c4b38641a3b048d5fe9138b19702063ce34efa Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 20 Nov 2020 20:11:16 -0800 Subject: [PATCH] ircd::m::init::backfill: Add conf item for acquire attempt_max. --- matrix/init_backfill.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/matrix/init_backfill.cc b/matrix/init_backfill.cc index 2c3ca987e..653dd662c 100644 --- a/matrix/init_backfill.cc +++ b/matrix/init_backfill.cc @@ -23,6 +23,7 @@ namespace ircd::m::init::backfill extern conf::item gossip_enable; extern conf::item local_joined_only; extern conf::item viewports; + extern conf::item attempt_max; extern conf::item pool_size; extern conf::item enable; extern log::log log; @@ -83,6 +84,13 @@ ircd::m::init::backfill::viewports { "default", 4L }, }; +decltype(ircd::m::init::backfill::attempt_max) +ircd::m::init::backfill::attempt_max +{ + { "name", "ircd.m.init.backfill.attempt_max" }, + { "default", 8L }, +}; + decltype(ircd::m::init::backfill::count) ircd::m::init::backfill::count; @@ -309,6 +317,7 @@ ircd::m::init::backfill::handle_room(const room::id &room_id) opts.viewport_size *= size_t(viewports); opts.vmopts.infolog_accept = true; opts.vmopts.warnlog &= ~vm::fault::EXISTS; + opts.attempt_max = size_t(attempt_max); m::acquire { opts