From f9def72a898af2e2211698edfe12bbe5ae21af42 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 30 Nov 2018 15:19:49 -0800 Subject: [PATCH] ircd::db: Fix propagation of column's compression type to compaction options. --- ircd/db.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ircd/db.cc b/ircd/db.cc index aed34df98..19e249614 100644 --- a/ircd/db.cc +++ b/ircd/db.cc @@ -8827,6 +8827,11 @@ ircd::db::compact(column &column, continue; rocksdb::CompactionOptions opts; + { + const rocksdb::ColumnFamilyOptions &copts(c); + opts.compression = copts.compression; + } + std::vector files(level.files.size()); std::transform(level.files.begin(), level.files.end(), files.begin(), [] (auto &metadata)