Skip to content

Commit bb95fb4

Browse files
authored
Merge pull request #4946 from namada-net/yuji/fix-compaction-diffs
Leveled compaction for diffs CF
2 parents f2a7260 + 1788e6a commit bb95fb4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Changed RocksDB compaction style to "Level" to avoid stalling on diffs
2+
column family. ([\#4946](https://github.com/namada-net/namada/pull/4946))

crates/node/src/storage/rocksdb.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ pub fn open(
190190
let mut diffs_cf_opts = Options::default();
191191
diffs_cf_opts.set_compression_type(DBCompressionType::Zstd);
192192
diffs_cf_opts.set_compression_options(0, 0, 0, 1024 * 1024);
193-
diffs_cf_opts.set_compaction_style(DBCompactionStyle::Universal);
193+
diffs_cf_opts.set_compaction_style(DBCompactionStyle::Level);
194194
diffs_cf_opts.set_block_based_table_factory(&table_opts);
195195
cfs.push(ColumnFamilyDescriptor::new(DIFFS_CF, diffs_cf_opts));
196196

0 commit comments

Comments
 (0)