Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix segfault in audit plugin codepath
Summary: The THD pointer is not always available when the audit plugin is called. The causes a problem when we try to access thd->query_id. Fix by doing a null check first. If the THD is null, then we copy what is done for thread_id, we just set query_id to 0. Squash with: 1def6b7 Expose more information to audit plugin Test Plan: mtr Reviewers: jkedgar, hermanlee4, drilibo Reviewed By: drilibo Subscribers: webscalesql-eng Differential Revision: https://reviews.facebook.net/D58287
- Loading branch information