From 8b27f7089dbeb56830066d2919451fecf9678edb Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 25 Sep 2018 02:37:29 -0700 Subject: [PATCH] ircd::db: Supply an insertion hint prefix extractor. --- ircd/db.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ircd/db.cc b/ircd/db.cc index df4ecf19c..3fb49b586 100644 --- a/ircd/db.cc +++ b/ircd/db.cc @@ -1430,6 +1430,10 @@ ircd::db::database::column::column(database *const &d, &this->prefix, [](const rocksdb::SliceTransform *) {} }; + // Set the insert hint prefix extractor + if(this->options.prefix_extractor) + this->options.memtable_insert_with_hint_prefix_extractor = this->options.prefix_extractor; + // Set the compaction filter this->options.compaction_filter = &this->cfilter;