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

Function update_file_buffer_size

plugin/server_audit/server_audit.cc:2407–2428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2405
2406
2407static void update_file_buffer_size(MYSQL_THD, st_mysql_sys_var *, void *,
2408 const void *save)
2409{
2410 lock_operations.wr_lock();
2411 file_buffer_size= *static_cast<const unsigned*>(save);
2412
2413 error_header();
2414 fprintf(stderr, "Log file buffer size was changed to '%u'.\n",
2415 file_buffer_size);
2416
2417 if (logging && output_type == OUTPUT_FILE &&
2418 logger_resize_buffer(logfile, file_buffer_size))
2419 {
2420 stop_logging();
2421 error_header();
2422 fprintf(stderr, "Buffer resize failed. Logging was disabled..\n");
2423 CLIENT_ERROR(1, "Buffer resize failed. Logging was disabled.",
2424 MYF(ME_WARNING));
2425 }
2426
2427 lock_operations.wr_unlock();
2428}
2429
2430
2431static int check_users(void *save, struct st_mysql_value *value,

Callers

nothing calls this directly

Calls 5

error_headerFunction · 0.85
logger_resize_bufferFunction · 0.85
stop_loggingFunction · 0.85
wr_lockMethod · 0.45
wr_unlockMethod · 0.45

Tested by

no test coverage detected