0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

ircd:Ⓜ️:dbs: Fix unwrapped prev_events iteration in indexer.

This commit is contained in:
Jason Volk 2019-07-10 03:02:00 -07:00
parent 735d1980ff
commit 4bbe07c95c

View file

@ -1243,11 +1243,11 @@ ircd::m::dbs::_index_room_head_resolve(db::txn &txn,
return;
const event::prev prev{event};
for(const json::array &p : json::get<"prev_events"_>(prev))
for(size_t i(0); i < prev.prev_events_count(); ++i)
{
const auto &event_id
{
unquote(p.at(0))
prev.prev_event(i)
};
thread_local char buf[ROOM_HEAD_KEY_MAX_SIZE];