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

Function update_timestamp_format

plugin/server_audit/server_audit.cc:2362–2374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2360
2361
2362static void update_timestamp_format(MYSQL_THD thd, st_mysql_sys_var *, void *,
2363 const void *save)
2364{
2365 char *new_val= *static_cast<char*const*>(save);
2366 if (!new_val)
2367 new_val= empty_str;
2368
2369 lock_operations.wr_lock();
2370 strncpy(timestamp_format_buffer, new_val, sizeof(timestamp_format_buffer)-1);
2371 timestamp_format_buffer[sizeof(timestamp_format_buffer)-1]= 0;
2372 timestamp_format= timestamp_format_buffer;
2373 lock_operations.wr_unlock();
2374}
2375
2376
2377static void update_file_rotations(MYSQL_THD, st_mysql_sys_var *,

Callers 1

server_audit_initFunction · 0.85

Calls 2

wr_lockMethod · 0.45
wr_unlockMethod · 0.45

Tested by

no test coverage detected