MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / update_server_status

Method update_server_status

sql/sql_class.h:2317–2322  ·  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

2315 setting, mark the query as slow.
2316 */
2317 void update_server_status()
2318 {
2319 utime_after_query= current_utime();
2320 if (utime_after_query > utime_after_lock + variables.long_query_time)
2321 server_status|= SERVER_QUERY_WAS_SLOW;
2322 }
2323 inline ulonglong found_rows(void)
2324 {
2325 return limit_found_rows;

Callers 1

dispatch_commandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected