Skip to content

Commit

Permalink
Refactor assigning source ID
Browse files Browse the repository at this point in the history
  • Loading branch information
shanicky committed Sep 19, 2023
1 parent 26c8e1f commit dbbe9db
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/meta/src/rpc/service/ddl_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -779,8 +779,11 @@ fn fill_table_source(
visit_fragment(fragment, |node_body| {
if let NodeBody::Source(source_node) = node_body {
// TODO: Refactor using source id.
source_node.source_inner.as_mut().unwrap().source_id = source_id;
source_count += 1;

if let Some(source_inner) = source_node.source_inner.as_mut() {
source_inner.source_id = source_id;
source_count += 1;
}
}
});
}
Expand Down

0 comments on commit dbbe9db

Please sign in to comment.