0
0
Fork 0
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:
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) const event::fetch::opts &opts)
{ {
if(event::fetch::should_seek_json(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}); return db::prefetch(dbs::event_json, byte_view<string_view>{event_idx});
}
const event::keys keys const event::keys keys
{ {
@ -844,6 +849,9 @@ ircd::m::prefetch(const event::idx &event_idx,
dbs::event_column.at(column_idx) dbs::event_column.at(column_idx)
}; };
if(!event_idx)
return false;
return db::prefetch(column, byte_view<string_view>{event_idx}); return db::prefetch(column, byte_view<string_view>{event_idx});
} }