1
0
mirror of https://github.com/MariaDB/server.git synced 2026-10-23 18:49:29 +03:00

11 Commits

Author SHA1 Message Date
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
forkfun
1a4bb1bbfd Merge branch '12.3' into '13.0' 2026-07-30 16:15:40 +02:00
forkfun
33240f3c96 Merge branch '11.8' into '12.3' 2026-07-30 11:41:55 +02:00
Abhishek Bansal
57e5d789b1 MDEV-18386: Add server_audit_timestamp_format to customize audit log timestamps 2026-04-13 21:25:08 +02:00
Sergei Golubchik
d653fcb564 Merge branch '11.8' into 12.2 2026-02-03 14:53:15 +01:00
Sergei Golubchik
27c98794bb Merge branch '11.8' into 12.2 2026-01-08 12:02:45 +01:00
Oleksandr Byelkin
10cb25e642 MDEV-38126:fix the version of server_audit plugin taking into account its feature set 2025-12-05 16:11:12 +01:00
Marko Mäkelä
9f3914170d MDEV-38126: Use InnoDB srw_lock_low for plugin/server_audit
Replace the contention prone mysql_prlock_t with a simpler
rw-lock wrapper from InnoDB, and fix several potential
race conditions by making consistent use of lock_operations.

This will also omit any PERFORMANCE_SCHEMA instrumentation.
2025-11-26 17:17:43 +02:00
Marko Mäkelä
f27af220b6 MDEV-38126: Remove lock_atomic from plugin/server_audit
internal_stop_logging: Declared as Atomic_counter<int>
2025-11-26 17:17:31 +02:00
Marko Mäkelä
bdb7868575 MDEV-38126: Remove __attribute__((unused)) from plugin/server_audit
Starting with ISO/IEC 14882:1998 (C++98), unused function parameters
may be identified simply by omitting their names.
2025-11-26 17:11:50 +02:00
Marko Mäkelä
b56c29573e MDEV-38126: Convert plugin/server_audit to C++11
To be able to improve performance, let us move from C90 to C++11,
which introduced std::atomic.
2025-11-26 17:11:32 +02:00