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

Method update_server_status

sql/sql_class.h:4902–4907  ·  view source on GitHub ↗

Update server status after execution of a top level statement. Currently only checks if a query was slow, and assigns the status accordingly. Evaluate the current time, and if it exceeds the long-query-time setting, mark the query as slow. */

Source from the content-addressed store, hash-verified

4900 setting, mark the query as slow.
4901 */
4902 void update_server_status()
4903 {
4904 set_time_for_next_stage();
4905 if (utime_after_query >= utime_after_lock + variables.log_slow_query_time)
4906 server_status|= SERVER_QUERY_WAS_SLOW;
4907 }
4908 /* True if query took longer than log_slow_always_query_time */
4909 bool log_slow_always_query_time()
4910 {

Callers 6

mysql_open_cursorFunction · 0.80
send_eofMethod · 0.80
sql_parse.ccFile · 0.80
executeMethod · 0.80
executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected