Prathamesh Hukkeri
95fc70c357
MDEV-39307: Fix %f in audit plugin timestamp rendering zero microseconds
...
The server_audit_timestamp_format %f specifier always rendered zero
microseconds. The server downcast the precise time to seconds before
passing it to audit plugins, and the plugin then re-fetched the time
itself at write time.
Pass the server's high-resolution time through the audit API instead:
- extend mysql_event_general with general_time_microseconds (added in
MYSQL_AUDIT_INTERFACE_VERSION 0x0304), keeping general_time in
seconds for backward compatibility
- the server_audit plugin uses event->general_time_microseconds for
query log entries instead of re-fetching the time at write time
Connection and table events carry no timestamp in the audit API, so the
plugin keeps taking the time at event time for those entries.
2026-09-29 15:33:22 +03:00
..
2023-09-24 11:20:38 +02:00
2026-09-29 15:33:22 +03:00
2022-02-09 19:13:52 +01:00
2022-08-22 09:10:40 +03:00
2026-01-29 20:53:42 +01:00
2024-11-05 14:00:50 -08:00
2026-08-17 12:28:56 +03:00
2026-04-30 21:55:42 +02:00
2022-01-21 16:02:34 +01:00
2024-04-18 15:22:10 +04:00
2026-01-23 03:21:03 +01:00
2025-03-06 10:00:03 +01:00
2024-12-02 17:51:17 +02:00
2026-07-29 13:05:08 +02:00
2025-11-11 10:29:45 +02:00
2026-08-20 08:27:14 +02:00
2025-03-24 13:36:28 +11:00
2026-08-17 12:28:56 +03:00
2026-08-14 17:30:08 +02:00
2023-01-03 17:08:42 +02:00
2025-06-25 17:59:45 +03:00
2025-01-28 19:31:29 +01:00
2024-11-05 14:00:47 -08:00
2023-04-24 12:43:47 +02:00
2026-05-28 11:22:47 +02:00
2022-03-24 09:53:52 +02:00
2025-06-02 14:02:53 +03:00
2026-08-11 11:32:01 +10:00
2026-07-06 13:44:56 +02:00
2026-02-03 15:32:12 +02:00
2026-03-24 09:49:17 +02:00
2024-11-23 08:14:22 -07:00
2026-02-10 00:03:02 +01:00
2024-06-21 13:46:41 +02:00
2026-01-23 03:21:03 +01:00
2023-02-09 16:09:08 +02:00
2026-02-20 08:33:35 +02:00
2026-07-24 17:06:39 +02:00
2022-12-20 08:55:48 +11:00
2026-05-01 15:14:06 +03:00
2023-01-04 14:52:25 +02:00
2025-03-24 13:36:28 +11:00
2026-08-20 08:27:14 +02:00
2025-01-09 09:41:38 +02:00
2025-06-18 07:43:24 +02:00
2024-12-05 02:36:25 +11:00
2022-07-31 14:54:37 +02:00
2025-07-28 19:40:10 +02:00
2025-04-19 11:03:43 +03:00
2026-09-04 12:21:02 +02:00
2025-09-30 17:37:12 +03:00
2023-02-02 23:54:45 +03:00
2025-07-31 20:55:47 +02:00
2026-07-29 13:05:09 +02:00
2026-04-29 14:38:18 +04:00
2024-12-02 17:51:17 +02:00
2025-09-29 18:25:09 +03:00
2023-05-23 09:16:36 +03:00
2024-11-05 14:00:47 -08:00
2026-07-30 16:15:40 +02:00
2024-05-27 12:39:02 +02:00
2026-05-01 12:29:12 +03:00
2026-02-06 17:46:51 +01:00
2026-05-01 12:29:12 +03:00
2024-05-27 12:39:04 +02:00
2026-04-16 19:00:12 +10:00
2024-07-09 13:17:20 +02:00
2024-12-02 17:51:17 +02:00
2026-01-23 03:21:03 +01:00
2025-02-06 16:46:36 +01:00
2026-07-06 13:44:56 +02:00
2023-02-09 16:09:08 +02:00
2025-02-12 10:17:44 +01:00
2025-07-17 09:18:17 +02:00
2024-02-04 22:19:00 +01:00
2025-03-31 17:57:40 +02:00
2024-02-04 22:19:19 +01:00
2025-04-28 12:59:39 +03:00
2026-01-21 00:22:06 +07:00
2025-10-25 00:19:11 +07:00
2026-09-09 09:24:22 +10:00
2022-12-20 08:55:48 +11:00
2023-01-19 12:39:37 +01:00
2022-08-31 11:05:23 +03:00