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

ircd:Ⓜ️:event: Faster bail on event_idx=0 to m::get().

This commit is contained in:
Jason Volk 2019-09-18 10:27:00 -07:00
parent 41cfb47de4
commit 9a446d6c42

View file

@ -1120,6 +1120,9 @@ ircd::m::get(std::nothrow_t,
const string_view &key,
const event::fetch::view_closure &closure)
{
if(!event_idx)
return false;
const auto &column_idx
{
json::indexof<event>(key)
@ -1130,9 +1133,6 @@ ircd::m::get(std::nothrow_t,
dbs::event_column.at(column_idx)
};
if(!event_idx)
return false;
const string_view &column_key
{
byte_view<string_view>{event_idx}