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. */
| 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 | { |
no outgoing calls
no test coverage detected