Skip to content

Commit

Permalink
fix(move table): apply version correctly (close risingwavelabs#8764) (r…
Browse files Browse the repository at this point in the history
  • Loading branch information
soundOfDestiny committed Apr 1, 2023
1 parent ad53077 commit 039d4a0
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,15 @@ impl HummockVersionUpdateExt for HummockVersion {
.levels
.get_mut(&group_change.origin_group_id)
.expect("compaction group should exist");
levels
let mut moving_tables = levels
.member_table_ids
.drain_filter(|t| group_change.table_ids.contains(t))
.collect_vec();
self.levels
.get_mut(compaction_group_id)
.expect("compaction group should exist")
.member_table_ids
.drain_filter(|t| group_change.table_ids.contains(t));
.append(&mut moving_tables);
}
let has_destroy = summary.group_destroy.is_some();
let levels = self
Expand Down

0 comments on commit 039d4a0

Please sign in to comment.