MCPcopy Create free account
hub / github.com/MariaDB/server / write_log_maybe_lock

Function write_log_maybe_lock

plugin/server_audit/server_audit.cc:1178–1184  ·  view source on GitHub ↗

Write to the log @param lock whether the caller did not acquire lock_operations */

Source from the content-addressed store, hash-verified

1176 @param lock whether the caller did not acquire lock_operations
1177*/
1178static int write_log_maybe_lock(const char *message, size_t len, bool lock, time_t ts)
1179{
1180 if (unlikely(!lock))
1181 return write_log(message, len, ts);
1182 else
1183 return write_log_and_lock(message, len, ts);
1184}
1185
1186
1187static size_t log_header(char *message, size_t message_len,

Callers 1

log_statement_exFunction · 0.85

Calls 2

write_logFunction · 0.85
write_log_and_lockFunction · 0.85

Tested by

no test coverage detected