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:
parent
421af71f58
commit
70dd2d7ba6
1 changed files with 11 additions and 9 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue