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. */
| 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; |