From d1e8d820946bce03f26f9d01aa99b79d77f0f1d0 Mon Sep 17 00:00:00 2001 From: kkould <2435992353@qq.com> Date: Mon, 9 Dec 2024 09:40:30 +0000 Subject: [PATCH] fix: `Compactor::build_tables` on `Major Compaction` using incorrect level fs --- src/compaction/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/compaction/mod.rs b/src/compaction/mod.rs index 5807430..5eef941 100644 --- a/src/compaction/mod.rs +++ b/src/compaction/mod.rs @@ -276,13 +276,16 @@ where inner: level_scan_ll, }); } + + let level_l_path = option.level_fs_path(level + 1).unwrap_or(&option.base_path); + let level_l_fs = manager.get_fs(level_l_path); Self::build_tables( option, version_edits, level + 1, streams, instance, - level_fs, + level_l_fs, ) .await?;