Skip to content

Commit

Permalink
fix: show sub_level_id for level 0 in rw_hummock_sstables (#15797)
Browse files Browse the repository at this point in the history
  • Loading branch information
hzxa21 authored Mar 19, 2024
1 parent 91a86e8 commit ac64f53
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ fn version_to_sstable_rows(version: HummockVersion) -> Vec<RwHummockSstable> {
object_id: sst.object_id as _,
compaction_group_id: cg.group_id as _,
level_id: level.level_idx as _,
sub_level_id: (level.level_idx > 0).then_some(level.sub_level_id as _),
sub_level_id: (level.level_idx == 0).then_some(level.sub_level_id as _),
level_type: level.level_type as _,
key_range_left: key_range.left,
key_range_right: key_range.right,
Expand Down

0 comments on commit ac64f53

Please sign in to comment.