0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-10 05:58:56 +02:00

ircd:Ⓜ️:event: Branch to end event_idx=0 propagation here.

This commit is contained in:
Jason Volk 2019-09-18 19:52:07 -07:00
parent 788542e833
commit becc51af01

View file

@ -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});
}