docs: clarify connector permission check in MySQL execution flow (fix #2466)#2838
Merged
Snailclimb merged 2 commits intoSnailclimb:mainfrom Apr 30, 2026
Merged
docs: clarify connector permission check in MySQL execution flow (fix #2466)#2838Snailclimb merged 2 commits intoSnailclimb:mainfrom
Snailclimb merged 2 commits intoSnailclimb:mainfrom
Conversation
Owner
感谢优化修正。
AQS 文档这处修改建议回退:tryReleaseShared 的方法签名应为 tryReleaseShared(int arg),返回值是 boolean,而不是参数类型为 boolean。 MySQL 执行流程这处修改方向是合理的,连接器阶段负责身份认证和权限获取,比“先检查该语句是否有权限”的表述更准确。 |
Contributor
Author
|
是的,这个修复是正确的。Issue #2466 指出原描述「先检查该语句是否有权限」容易让读者误解为连接器在进行 SQL 语句级别的权限检查。实际上,MySQL 连接器的职责是:
修改后的描述「先通过连接器进行身份认证和权限获取(若认证失败则直接拒绝)」更准确地反映了连接器的实际工作流程。感谢确认! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复内容
修复 Issue #2466:SQL执行流程中关于连接器权限校验步骤的描述不准确
问题:原描述「先检查该语句是否有权限」不够准确,容易让读者误以为权限检查发生在分析器/缓存之后。
修复:明确指出连接器在身份认证阶段即完成权限获取,认证失败则直接拒绝访问。
参考:MySQL连接器主要负责用户登录时的身份认证,包括校验账户密码和权限获取(Issue #2466)