mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
cleanup: remove dead code
This commit is contained in:
@ -474,60 +474,6 @@ void init_user_stats(USER_STATS *user_stats,
|
||||
}
|
||||
|
||||
|
||||
#ifdef COMPLETE_PATCH_NOT_ADDED_YET
|
||||
|
||||
void add_user_stats(USER_STATS *user_stats,
|
||||
uint total_connections,
|
||||
uint concurrent_connections,
|
||||
time_t connected_time,
|
||||
double busy_time,
|
||||
double cpu_time,
|
||||
ulonglong bytes_received,
|
||||
ulonglong bytes_sent,
|
||||
ulonglong binlog_bytes_written,
|
||||
ha_rows rows_sent,
|
||||
ha_rows rows_read,
|
||||
ha_rows rows_inserted,
|
||||
ha_rows rows_deleted,
|
||||
ha_rows rows_updated,
|
||||
ulonglong select_commands,
|
||||
ulonglong update_commands,
|
||||
ulonglong other_commands,
|
||||
ulonglong commit_trans,
|
||||
ulonglong rollback_trans,
|
||||
ulonglong denied_connections,
|
||||
ulonglong lost_connections,
|
||||
ulonglong max_statement_time_exceeded,
|
||||
ulonglong access_denied_errors,
|
||||
ulonglong empty_queries)
|
||||
{
|
||||
user_stats->total_connections+= total_connections;
|
||||
user_stats->concurrent_connections+= concurrent_connections;
|
||||
user_stats->connected_time+= connected_time;
|
||||
user_stats->busy_time+= busy_time;
|
||||
user_stats->cpu_time+= cpu_time;
|
||||
user_stats->bytes_received+= bytes_received;
|
||||
user_stats->bytes_sent+= bytes_sent;
|
||||
user_stats->binlog_bytes_written+= binlog_bytes_written;
|
||||
user_stats->rows_sent+= rows_sent;
|
||||
user_stats->rows_inserted+= rows_inserted;
|
||||
user_stats->rows_deleted+= rows_deleted;
|
||||
user_stats->rows_updated+= rows_updated;
|
||||
user_stats->rows_read+= rows_read;
|
||||
user_stats->select_commands+= select_commands;
|
||||
user_stats->update_commands+= update_commands;
|
||||
user_stats->other_commands+= other_commands;
|
||||
user_stats->commit_trans+= commit_trans;
|
||||
user_stats->rollback_trans+= rollback_trans;
|
||||
user_stats->denied_connections+= denied_connections;
|
||||
user_stats->lost_connections+= lost_connections;
|
||||
user_stats->max_statement_time_exceeded+= max_statement_time_exceeded;
|
||||
user_stats->access_denied_errors+= access_denied_errors;
|
||||
user_stats->empty_queries+= empty_queries;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
void init_global_user_stats(void)
|
||||
{
|
||||
if (my_hash_init(&global_user_stats, system_charset_info, max_connections,
|
||||
|
Reference in New Issue
Block a user