Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
zwang28 committed Nov 4, 2024
1 parent 5b30014 commit 9673ccc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/meta/src/hummock/manager/time_travel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,9 @@ pub fn require_sql_meta_store_err() -> Error {
/// Time travel delta replay only expect `NewL0SubLevel`. In all other cases, a new version snapshot should be created.
pub fn should_mark_next_time_travel_version_snapshot(delta: &HummockVersionDelta) -> bool {
delta.group_deltas.iter().any(|(_, deltas)| {
deltas.group_deltas.iter().any(|d| match d {
GroupDeltaCommon::NewL0SubLevel(_) => false,
_ => true,
})
deltas
.group_deltas
.iter()
.any(|d| !matches!(d, GroupDeltaCommon::NewL0SubLevel(_)))
})
}

0 comments on commit 9673ccc

Please sign in to comment.