diff --git a/src/meta/src/manager/catalog/database.rs b/src/meta/src/manager/catalog/database.rs index 735ef4c338e6a..d630f08626c9f 100644 --- a/src/meta/src/manager/catalog/database.rs +++ b/src/meta/src/manager/catalog/database.rs @@ -417,8 +417,7 @@ impl DatabaseManager { } pub fn has_in_progress_creation(&self, relation: &RelationKey) -> bool { - self.in_progress_creation_tracker - .contains(&relation.clone()) + self.in_progress_creation_tracker.contains(relation) } /// For all types of DDL diff --git a/src/meta/src/manager/catalog/mod.rs b/src/meta/src/manager/catalog/mod.rs index 5557cb109e97d..a20f0a1041a20 100644 --- a/src/meta/src/manager/catalog/mod.rs +++ b/src/meta/src/manager/catalog/mod.rs @@ -885,7 +885,6 @@ impl CatalogManager { self.env.event_log_manager_ref().add_event_logs(event_logs); } - database_core.clear_creating_stream_jobs(); let user_core = &mut core.user; for table in &tables_to_clean { // If table type is internal, no need to update the ref count OR