0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd::db: Fix propagation of column's compression type to compaction options.

This commit is contained in:
Jason Volk 2018-11-30 15:19:49 -08:00
parent ea0ad518ea
commit f9def72a89

View file

@ -8827,6 +8827,11 @@ ircd::db::compact(column &column,
continue; continue;
rocksdb::CompactionOptions opts; rocksdb::CompactionOptions opts;
{
const rocksdb::ColumnFamilyOptions &copts(c);
opts.compression = copts.compression;
}
std::vector<std::string> files(level.files.size()); std::vector<std::string> files(level.files.size());
std::transform(level.files.begin(), level.files.end(), files.begin(), [] std::transform(level.files.begin(), level.files.end(), files.begin(), []
(auto &metadata) (auto &metadata)