Skip to content

Commit d07f2bb

Browse files
fix(compaction group): trivial adjust should also increase divide ver… (risingwavelabs#8484)
1 parent 6797904 commit d07f2bb

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/meta/src/hummock/manager/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,8 +1510,8 @@ async fn test_split_compaction_group_on_demand_basic() {
15101510
.get(&new_group_id)
15111511
.cloned()
15121512
.unwrap(),
1513-
0,
1514-
"trivial adjust doesn't increase divide version"
1513+
1,
1514+
"trivial adjust should aoso increase divide version"
15151515
);
15161516
}
15171517
}

src/storage/hummock_sdk/src/compaction_group/hummock_version_ext.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,7 @@ impl HummockVersionUpdateExt for HummockVersion {
225225
.get_table_ids()
226226
.iter()
227227
.all(|table_id| member_table_ids.contains(table_id));
228-
if !is_trivial {
229-
sst_info.divide_version += 1;
230-
}
228+
sst_info.divide_version += 1;
231229
split_id_vers.push((
232230
sst_info.get_id(),
233231
sst_info.get_divide_version(),

0 commit comments

Comments
 (0)