0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

ircd::db: Condition filter check on if used for column (rocksdb regression workaround).

This commit is contained in:
Jason Volk 2018-10-16 01:21:42 -07:00
parent 18977fabe1
commit bed1d49b6e

View file

@ -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
{