0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 07:23:53 +01:00

ircd::db: Supply an insertion hint prefix extractor.

This commit is contained in:
Jason Volk 2018-09-25 02:37:29 -07:00
parent 8e9a4b0d3b
commit 8b27f7089d

View file

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