Skip to content

Commit

Permalink
fix: fix user manager refcount on startup (#16632) (#16634)
Browse files Browse the repository at this point in the history
Signed-off-by: xxchan <[email protected]>
Co-authored-by: xxchan <[email protected]>
  • Loading branch information
github-actions[bot] and xxchan authored May 8, 2024
1 parent 4e4c37c commit ce6c8de
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 ce6c8de

Please sign in to comment.