Skip to content

Commit

Permalink
fix(storage): refill all version delta (#17540)
Browse files Browse the repository at this point in the history
  • Loading branch information
Li0k authored and Li0k committed Jul 3, 2024
1 parent 18bc831 commit 3ab4887
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/storage/src/hummock/event_handler/hummock_event_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3ab4887

Please sign in to comment.