update: 增加检测SQL的超时时间,避免真实影响行数检测对实例造成影响 #304
Closed
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.
背景:
针对需要开启真实影响行数检测的场景,由于大多数审核检测还是在主库进行,这等同于是开放了在主库执行任意查询语句的权限,可能由于提交用户的不当操作对生产实例造成影响
调整:
不足和风险:
AffectedRows > 0
不合理(不太会改)个人的想法,看是否有必要调整和合并
关于max_execution_time参数的版本:https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-8.html