Skip to content

Commit

Permalink
fix: fix user manager refcount on startup (#16632)
Browse files Browse the repository at this point in the history
Signed-off-by: xxchan <[email protected]>
  • Loading branch information
xxchan authored and xxchan committed May 8, 2024
1 parent 1f26c5c commit 52a6164
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/meta/src/manager/catalog/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ impl UserManager {
.map(|table| table.owner),
)
.chain(database.views.values().map(|view| view.owner))
.chain(database.functions.values().map(|function| function.owner))
.chain(
database
.connections
.values()
.map(|connection| connection.owner),
)
.for_each(|owner_id| user_manager.increase_ref(owner_id));

Ok(user_manager)
Expand Down

0 comments on commit 52a6164

Please sign in to comment.