0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-01 19:22:53 +01:00

ircd:Ⓜ️:init::backfill: Add infolog during iteration; improve warning as per similar msgs.

This commit is contained in:
Jason Volk 2020-02-20 12:35:13 -08:00
parent 421af71f58
commit 70dd2d7ba6

View file

@ -66,8 +66,7 @@ ircd::m::init::backfill::init()
{ {
log::warning log::warning
{ {
log, "Initial synchronization of rooms from remote servers has" log, "Not performing initial backfill because write-avoid flag is set."
" been disabled by the configuration to avoid write operations."
}; };
return; return;
@ -270,13 +269,6 @@ try
room room
}; };
log::debug
{
log, "Resynchronizing %s with %zu joined servers.",
string_view{room_id},
origins.count(),
};
// When the room isn't public we need to supply a user_id of one of our // When the room isn't public we need to supply a user_id of one of our
// users in the room to satisfy matrix protocol requirements upstack. // users in the room to satisfy matrix protocol requirements upstack.
const auto user_id const auto user_id
@ -292,6 +284,16 @@ try
m::top(std::nothrow, room) m::top(std::nothrow, room)
}; };
log::info
{
log, "Resynchronizing %s from %s [idx:%lu depth:%ld] from %zu joined servers...",
string_view{room_id},
string_view{top_event_id},
top_event_idx,
top_event_depth,
origins.count(),
};
feds::opts opts; feds::opts opts;
opts.op = feds::op::head; opts.op = feds::op::head;
opts.room_id = room_id; opts.room_id = room_id;