From fe15e0d6a6d30f7c6b076688635238b9d19b358b Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 11 Jan 2019 17:40:27 -0800 Subject: [PATCH] ircd::db: Use the proper cache query here. --- modules/console.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/console.cc b/modules/console.cc index 2f6c50a91..e4bda268f 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -7272,8 +7272,8 @@ console_cmd__room__state__cache(opt &out, const string_view &line) const byte_view &key(event_idx); for(size_t i(0); i < m::dbs::event_column.size(); ++i) { - const auto &column(m::dbs::event_column[i]); - res[i] += db::exists(db::cache(column), key); + auto &column(m::dbs::event_column[i]); + res[i] += db::cached(column, key); } ++total;