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

ircd::db: Convey better compaction compression option.

This commit is contained in:
Jason Volk 2018-12-11 16:42:18 -08:00
parent a03d28c6a1
commit 24d8665695

View file

@ -9080,10 +9080,11 @@ ircd::db::compact(column &column,
continue; continue;
rocksdb::CompactionOptions opts; rocksdb::CompactionOptions opts;
{
const rocksdb::ColumnFamilyOptions &copts(c); // RocksDB sez that setting this to Disable means that the column's
opts.compression = copts.compression; // compression options are read instead. If we don't set this here,
} // rocksdb defaults to "snappy" (which is strange).
opts.compression = rocksdb::kDisableCompressionOption;
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(), []