mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
ircd::db: Condition filter check on if used for column (rocksdb regression workaround).
This commit is contained in:
parent
18977fabe1
commit
bed1d49b6e
1 changed files with 9 additions and 6 deletions
15
ircd/db.cc
15
ircd/db.cc
|
@ -7991,12 +7991,15 @@ ircd::db::has(column &column,
|
|||
database::column &c(column);
|
||||
|
||||
// Perform a co-RP query to the filtration
|
||||
const auto k(slice(key));
|
||||
auto opts(make_opts(gopts));
|
||||
opts.read_tier = NON_BLOCKING;
|
||||
thread_local std::string discard;
|
||||
if(!d.d->KeyMayExist(opts, c, k, &discard, nullptr))
|
||||
return false;
|
||||
if(c.table_opts.filter_policy)
|
||||
{
|
||||
const auto k(slice(key));
|
||||
auto opts(make_opts(gopts));
|
||||
opts.read_tier = NON_BLOCKING;
|
||||
thread_local std::string discard;
|
||||
if(!d.d->KeyMayExist(opts, c, k, &discard, nullptr))
|
||||
return false;
|
||||
}
|
||||
|
||||
const auto it
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue