From fc36d88c2815e0cbdd9381ac19559c281ad0ab7d Mon Sep 17 00:00:00 2001 From: zwang28 <84491488@qq.com> Date: Fri, 20 Dec 2024 16:29:06 +0800 Subject: [PATCH] fix(meta): skip unnecessary delta persistence --- src/meta/src/hummock/manager/time_travel.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/meta/src/hummock/manager/time_travel.rs b/src/meta/src/hummock/manager/time_travel.rs index 3e333ecafb94c..acd851b3b2781 100644 --- a/src/meta/src/hummock/manager/time_travel.rs +++ b/src/meta/src/hummock/manager/time_travel.rs @@ -484,6 +484,8 @@ impl HummockManager { .on_conflict_do_nothing() .exec(txn) .await?; + // Return early to skip persisting delta. + return Ok(version_sst_ids); } let written = write_sstable_infos( delta.newly_added_sst_infos().filter(|s| {