WL#5571: Audit interface: MYSQL_AUDIT_GENERAL_STATUS event

Affects: Server-5.5   —   Status: Complete

This worklog aims to address two deficiencies in audit interface:

1. Currently there is no way to audit client connections when general log is
off. There is no good excuse for this requirement. But there is at least one
good reason not to have this requirement: performance.

2. If an error occurs during query execution, MYSQL_AUDIT_GENERAL_ERROR is
triggered before transmitting errors. If no error occurred,
MYSQL_AUDIT_GENERAL_RESULT event is triggered after transmitting a result set.
This is rather inconsistent - there is no way to reliably determine when query
processing has actually finished. MYSQL_AUDIT_GENERAL_LOG solves this
deficiency, but it requires general log on.