From e5e0755b44d22def33d37b046e889a182b896c90 Mon Sep 17 00:00:00 2001 From: August Date: Wed, 4 Dec 2024 16:44:30 +0800 Subject: [PATCH] fix: add missing objects for schema empty check (#19672) --- src/meta/src/manager/catalog/database.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/meta/src/manager/catalog/database.rs b/src/meta/src/manager/catalog/database.rs index d6523060e967..73943d021556 100644 --- a/src/meta/src/manager/catalog/database.rs +++ b/src/meta/src/manager/catalog/database.rs @@ -502,6 +502,9 @@ impl DatabaseManager { .all(|s| s.schema_id != schema_id) && self.indexes.values().all(|i| i.schema_id != schema_id) && self.views.values().all(|v| v.schema_id != schema_id) + && self.functions.values().all(|f| f.schema_id != schema_id) + && self.connections.values().all(|c| c.schema_id != schema_id) + && self.secrets.values().all(|s| s.schema_id != schema_id) } pub fn increase_relation_ref_count(&mut self, relation_id: RelationId) {