Skip to content

Commit

Permalink
apply #8484
Browse files Browse the repository at this point in the history
  • Loading branch information
Liang Zhao committed Mar 11, 2023
1 parent be833d3 commit 2aa8096
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/meta/src/hummock/manager/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1511,15 +1511,15 @@ async fn test_split_compaction_group_on_demand_basic() {
assert_eq!(branched_ssts.len(), 2);
for object_id in [10, 11] {
assert_eq!(branched_ssts.get(&object_id).unwrap().len(), 1);
assert_eq!(
assert_ne!(
branched_ssts
.get(&object_id)
.unwrap()
.get(&new_group_id)
.cloned()
.unwrap(),
object_id,
"trivial adjust doesn't generate a new SST id"
"trivial adjust should also generate a new SST id"
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,11 @@ impl HummockVersionUpdateExt for HummockVersion {
.iter()
.all(|table_id| member_table_ids.contains(table_id));
let mut branch_table_info = sst_info.clone();
branch_table_info.sst_id = new_sst_id;
new_sst_id += 1;
if !is_trivial {
sst_info.sst_id = new_sst_id;
new_sst_id += 1;
branch_table_info.sst_id = new_sst_id;
new_sst_id += 1;
}
split_id_vers.push((
branch_table_info.get_object_id(),
Expand Down Expand Up @@ -285,11 +285,11 @@ impl HummockVersionUpdateExt for HummockVersion {
.iter()
.all(|table_id| member_table_ids.contains(table_id));
let mut branch_table_info = sst_info.clone();
branch_table_info.sst_id = new_sst_id;
new_sst_id += 1;
if !is_trivial {
sst_info.sst_id = new_sst_id;
new_sst_id += 1;
branch_table_info.sst_id = new_sst_id;
new_sst_id += 1;
}
split_id_vers.push((
branch_table_info.get_object_id(),
Expand Down

0 comments on commit 2aa8096

Please sign in to comment.