Skip to content

Conversation

@reltuk
Copy link
Contributor

@reltuk reltuk commented Nov 21, 2025

Previously gms relied on the ComInitDB callback to update the processlist with the currently authenticated user. This resulted in the processlist showing "unauthenticated user" for connections which were already authenticated but which had not issued a ComInitDB. Those connections could issue queries which would also appear in the process list. Adding an explicit callback when the authentication is successful and allowing the processlist entry to be Command Sleep with an authenticated user even when no database is selected is more correct behavior here.

… call once the connection is authenticated.

Previously gms relied on the ComInitDB callback to update the processlist with
the currently authenticated user. This resulted in the processlist showing
"unauthenticated user" for connections which were already authenticated but
which had not issued a ComInitDB. Those connections could issue queries which
would also appear in the process list. Adding an explicit callback when the
authentication is successful and allowing the processlist entry to be Command
Sleep with an authenticated user even when no database is selected is more
correct behavior here.
Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@reltuk reltuk merged commit 90ae387 into main Nov 24, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants