Bug #86319 Remove the debug-only field GRANT_INFO::want_privilege
Submitted: 15 May 2017 8:38 Modified: 15 Aug 2017 13:34
Reporter: Roy Lyseng Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Optimizer Severity:S3 (Non-critical)
Version:8.0 OS:Any
Assigned to: CPU Architecture:Any

[15 May 2017 8:38] Roy Lyseng
Description:
After recent refactoring of column privilege checking, this field is reduced to a debug-only field, and has been used solely in debug asserts to validate that new behavior is equivalent to old behavior. As time goes, maintaining this field becomes cumbersome, since its sole value is to maintain compatibility with old behavior.

Hence, the reasonable thing to do is to remove it.

How to repeat:
NA, code cleanup.

Suggested fix:
Remove GRANT_INFO::want_privilege and TABLE_LIST::set_want_privilege().
[15 Aug 2017 13:34] Paul DuBois
Posted by developer:
 
Fixed in 8.0.3.

Code cleanup. No changelog entry needed.