Skip to content

Commit

Permalink
fix(storage): auto_pick_type should cover Tombstone type (#12670)
Browse files Browse the repository at this point in the history
  • Loading branch information
Li0k authored Oct 8, 2023
1 parent 129ab28 commit 1d04366
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/meta/src/hummock/manager/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3016,9 +3016,13 @@ impl CompactionState {
Some(compact_task::TaskType::SpaceReclaim)
} else if guard.contains(&(group, compact_task::TaskType::Ttl)) {
Some(compact_task::TaskType::Ttl)
} else if guard.contains(&(group, compact_task::TaskType::Tombstone)) {
Some(compact_task::TaskType::Tombstone)
} else if guard.contains(&(group, compact_task::TaskType::Dynamic)) {
Some(compact_task::TaskType::Dynamic)
} else {
// Other types are not triggered by `try_sched_compaction`, so no need to be handled.
// TODO: Consider using match state to avoid missing newly added types
None
}
}
Expand Down

0 comments on commit 1d04366

Please sign in to comment.