Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lp:1659992 "Function over userstat tables cause mysql to crash" (5.6) #1541

Conversation

percona-ysorokin
Copy link
Collaborator

No description provided.

@percona-ysorokin
Copy link
Collaborator Author

Copy link
Contributor

@laurynas-biveinis laurynas-biveinis left a comment

Choose a reason for hiding this comment

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

Same as for 5.5

Some 'SELECT' statements over 'table_statistics' IS table used to call
'check_grant()' from 'fill_schema_table_stats()' with 'table_list' parameter
which did not include any element that would have 'next_global' pointing to
'thd->lex->query_tables_own_last'. This was a violation of 'check_grant()'
pre-conditions.

Fixed by backporting part of the 5.7
"wl#6960: Refactoring auth code: milestone 1, new physical file structure"
(commit 0ed74a1) which added additional 'NULL' check to 'TABLE_LIST'
iteration in 'check_grant()'.

Extended 'main.percona_userstat' MTR test case.
@percona-ysorokin percona-ysorokin force-pushed the ps-5.6-bug1659992-function_over_userstat branch from daca0de to 55ce64c Compare March 23, 2017 14:14
@percona-ysorokin
Copy link
Collaborator Author

Updated Jenkins build link (as no code changes since the previous commit, just single test run)
http://jenkins.percona.com/view/PS%205.6/job/percona-server-5.6-param/1791/

Copy link
Contributor

@robgolebiowski robgolebiowski left a comment

Choose a reason for hiding this comment

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

LGTM

@percona-ysorokin percona-ysorokin merged commit 93ee4d2 into percona:5.6 Mar 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants