Skip to content

Commit

Permalink
filter out shared streaming source
Browse files Browse the repository at this point in the history
  • Loading branch information
xxchan committed Sep 3, 2024
1 parent 7d942ba commit 1854392
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/meta/src/manager/catalog/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -629,11 +629,12 @@ impl CatalogManager {
.into_iter()
.filter(|table| valid_table_name(&table.name))
.map(|table| StreamingJobId::new(table.id))
.chain(
sources_to_drop
.iter()
.map(|source| StreamingJobId::new(source.id)),
)
.chain(sources_to_drop.iter().filter_map(|source| {
source
.info
.as_ref()
.and_then(|info| info.is_shared().then(|| StreamingJobId::new(source.id)))
}))
.chain(
sinks_to_drop
.into_iter()
Expand Down

0 comments on commit 1854392

Please sign in to comment.