You've already forked mysql-audit
mirror of
https://github.com/trellix-enterprise/mysql-audit.git
synced 2025-12-14 18:14:01 +08:00
new configuration: audit_json_file_bufsize . Controls the buffer size used when logging to a file. Value of 0 means default size, value of 1 means no buffering.
This commit is contained in:
@@ -554,7 +554,7 @@ class Audit_file_handler: public Audit_io_handler
|
||||
public:
|
||||
|
||||
Audit_file_handler() :
|
||||
m_sync_period(0), m_log_file(NULL), m_sync_counter(0)
|
||||
m_sync_period(0), m_log_file(NULL), m_sync_counter(0), m_bufsize(0)
|
||||
{
|
||||
m_io_type = "file";
|
||||
}
|
||||
@@ -571,6 +571,11 @@ public:
|
||||
*/
|
||||
unsigned int m_sync_period;
|
||||
|
||||
/**
|
||||
* The buf size used by the file stream. 0 = use default, negative or 1 = no buffering
|
||||
*/
|
||||
long m_bufsize;
|
||||
|
||||
/**
|
||||
* Write function we pass to formatter
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user