Hi maria-developers,
This is my patch for MDEV-5681: "audit log will not rotate when the file size exceeds global variable setting":
To test,
1. set server_audit_events = 'connect' and keep default rotate size of 1000000.2. connect with a bad password about 20 times: for i in {1..20}; do mysql -ufail -pfail; done3. see that server_audit.log is X bytes4. set server_audit_rotate_size = 10005. connect with bad password for another 20 times6. see original server_audit.log is still X bytes (meaning log rotated immediately) and subsequent server_audit.log.* logs are ~1000 bytes or less
Please review.
Thanks,Tan TranProspective GSoC student
_______________________________________________ Mailing list: https://launchpad.net/~maria-developers Post to : maria-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-developers More help : https://help.launchpad.net/ListHelp