From 1a04f8263ff77195a21053fe9ae58c97e140fe3b Mon Sep 17 00:00:00 2001 From: Christopher Berner Date: Sat, 31 Aug 2024 17:01:41 -0700 Subject: [PATCH] Improve compaction efficacy to include system tables --- src/transactions.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/transactions.rs b/src/transactions.rs index bb0ec429..7bd7def2 100644 --- a/src/transactions.rs +++ b/src/transactions.rs @@ -1166,6 +1166,11 @@ impl WriteTransaction { if table_tree.compact_tables()? { progress = true; } + let mut system_tables = self.system_tables.lock().unwrap(); + let system_table_tree = &mut system_tables.table_tree; + if system_table_tree.compact_tables()? { + progress = true; + } Ok(progress) }