Skip to content

Commit

Permalink
clean dirty tables could already clear the in progress creation
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel committed Oct 25, 2023
1 parent 4b3ca43 commit b3c69e0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/meta/src/manager/catalog/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1981,9 +1981,7 @@ impl CatalogManager {
let table_key = (table.database_id, table.schema_id, table.name.clone());
assert!(
!database_core.sources.contains_key(&source.id)
&& !database_core.tables.contains_key(&table.id)
&& database_core.has_in_progress_creation(&source_key)
&& database_core.has_in_progress_creation(&table_key),
&& !database_core.tables.contains_key(&table.id),
"table and source must be in creating procedure"
);

Expand Down

0 comments on commit b3c69e0

Please sign in to comment.