From 7b4b6c479ca3f89e972f163d02f2f7f576166167 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 21 Oct 2018 04:41:21 -0700 Subject: [PATCH] ircd::db: Use dead branch rather than comment for has() regression for now. --- ircd/db.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ircd/db.cc b/ircd/db.cc index 7bf0ce204..3a0f05a15 100644 --- a/ircd/db.cc +++ b/ircd/db.cc @@ -8007,11 +8007,10 @@ ircd::db::has(column &column, database::column &c(column); // Perform a co-RP query to the filtration -/* // NOTE disabled for rocksdb >= v5.15 due to a regression // where rocksdb does not init SuperVersion data in the column // family handle and this codepath triggers null derefs and ub. - if(c.table_opts.filter_policy) + if(0 && c.table_opts.filter_policy) { const auto k(slice(key)); auto opts(make_opts(gopts)); @@ -8020,7 +8019,6 @@ ircd::db::has(column &column, if(!d.d->KeyMayExist(opts, c, k, &discard, nullptr)) return false; } -*/ const auto it {