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:
parent
a03d28c6a1
commit
24d8665695
1 changed files with 5 additions and 4 deletions
|
@ -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(), []
|
||||||
|
|
Loading…
Reference in a new issue