Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid executing status var functions during
SHOW STATUS
when not re…
…quired Summary: 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`). Reviewed By: midom, anirbanr-fb Differential Revision: D9561354 fbshipit-source-id: 22f79e0
- Loading branch information