mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 08:24:08 +01:00
ircd:Ⓜ️:event: Branch to end event_idx=0 propagation here.
This commit is contained in:
parent
788542e833
commit
becc51af01
1 changed files with 8 additions and 0 deletions
|
@ -807,7 +807,12 @@ ircd::m::prefetch(const event::idx &event_idx,
|
|||
const event::fetch::opts &opts)
|
||||
{
|
||||
if(event::fetch::should_seek_json(opts))
|
||||
{
|
||||
if(!event_idx)
|
||||
return false;
|
||||
|
||||
return db::prefetch(dbs::event_json, byte_view<string_view>{event_idx});
|
||||
}
|
||||
|
||||
const event::keys keys
|
||||
{
|
||||
|
@ -844,6 +849,9 @@ ircd::m::prefetch(const event::idx &event_idx,
|
|||
dbs::event_column.at(column_idx)
|
||||
};
|
||||
|
||||
if(!event_idx)
|
||||
return false;
|
||||
|
||||
return db::prefetch(column, byte_view<string_view>{event_idx});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue