From 0ebe33187fdfc01d7acc0b366d1a162ec40bbbd6 Mon Sep 17 00:00:00 2001 From: Mingwei Tian Date: Mon, 14 Oct 2024 20:46:57 -0700 Subject: [PATCH] [db] allow putting larger layer in higher levels --- crates/typed-store/src/rocks/mod.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/typed-store/src/rocks/mod.rs b/crates/typed-store/src/rocks/mod.rs index 825f375d1059b..b5d9e8c791b1e 100644 --- a/crates/typed-store/src/rocks/mod.rs +++ b/crates/typed-store/src/rocks/mod.rs @@ -2523,7 +2523,6 @@ impl DBOptions { // Switch to universal compactions. self.options .set_compaction_style(rocksdb::DBCompactionStyle::Universal); - self.options.set_num_levels(1); let mut compaction_options = rocksdb::UniversalCompactOptions::default(); compaction_options.set_max_size_amplification_percent(10000); compaction_options.set_stop_style(rocksdb::UniversalCompactionStopStyle::Similar);