From 3ab48874d378e933eb39e1446891665635da17a5 Mon Sep 17 00:00:00 2001 From: Li0k Date: Wed, 3 Jul 2024 13:52:10 +0800 Subject: [PATCH] fix(storage): refill all version delta (#17540) --- .../hummock/event_handler/hummock_event_handler.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/storage/src/hummock/event_handler/hummock_event_handler.rs b/src/storage/src/hummock/event_handler/hummock_event_handler.rs index 1298a629563d9..65d46d9902fe4 100644 --- a/src/storage/src/hummock/event_handler/hummock_event_handler.rs +++ b/src/storage/src/hummock/event_handler/hummock_event_handler.rs @@ -636,14 +636,12 @@ impl HummockEventHandler { let mut version_to_apply = pinned_version.version().clone(); for version_delta in &version_deltas { assert_eq!(version_to_apply.id, version_delta.prev_id); - if version_to_apply.max_committed_epoch == version_delta.max_committed_epoch { - if let Some(sst_delta_infos) = &mut sst_delta_infos { - sst_delta_infos.extend( - version_to_apply - .build_sst_delta_infos(version_delta) - .into_iter(), - ); - } + if let Some(sst_delta_infos) = &mut sst_delta_infos { + sst_delta_infos.extend( + version_to_apply + .build_sst_delta_infos(version_delta) + .into_iter(), + ); } version_to_apply.apply_version_delta(version_delta); }