mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 23:40:57 +01:00
ircd::db: Use the proper cache query here.
This commit is contained in:
parent
47bda85f3f
commit
fe15e0d6a6
1 changed files with 2 additions and 2 deletions
|
@ -7272,8 +7272,8 @@ console_cmd__room__state__cache(opt &out, const string_view &line)
|
||||||
const byte_view<string_view> &key(event_idx);
|
const byte_view<string_view> &key(event_idx);
|
||||||
for(size_t i(0); i < m::dbs::event_column.size(); ++i)
|
for(size_t i(0); i < m::dbs::event_column.size(); ++i)
|
||||||
{
|
{
|
||||||
const auto &column(m::dbs::event_column[i]);
|
auto &column(m::dbs::event_column[i]);
|
||||||
res[i] += db::exists(db::cache(column), key);
|
res[i] += db::cached(column, key);
|
||||||
}
|
}
|
||||||
|
|
||||||
++total;
|
++total;
|
||||||
|
|
Loading…
Reference in a new issue