Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mysql-5.6][PR] FB8-206: Avoid executing status var functions during …
…`SHOW STATUS` when not required Summary: Jira issue: https://jira.percona.com/browse/FB8-206 Reference Patch: bf0baf3f7af Status var functions were always executed irrespective of matching string in the `LIKE` clause of `SHOW STATUS`. This caused execution of some heavy status var functions like `show_jemalloc_*` every time `SHOW STATUS` was invoked. In this change we execute the status var function only for vars whose names are strict prefixes of the wildcard specified in the `LIKE` clause. Since we're checking for strict prefix match, we might get false positives in some cases. We cannot use normal wildcard matching (like other function-less status vars) because some var names are constructed recursively in `show_status_array()` (e.g. `Rpl_semi_sync_master_trx_wait_histogram%` is composed out of `Rpl_semi_sync_master` and `trx_wait_histogram`). Originally Reviewed By: midom, anirbanr-fb Pull Request resolved: #1009 GitHub Author: [email protected] <[email protected]> Test Plan: Imported from GitHub, without a `Test Plan:` line. Reviewers: Subscribers: butterflybot, vinaybhat, [email protected] Differential Revision: https://phabricator.intern.facebook.com/D14884044
- Loading branch information