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

Method update_stats

sql/sql_class.cc:1494–1511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1492/* Updates some status variables to be used by update_global_user_stats */
1493
1494void THD::update_stats(void)
1495{
1496 /* sql_command == SQLCOM_END in case of parse errors or quit */
1497 if (lex->sql_command != SQLCOM_END)
1498 {
1499 /* A SQL query. */
1500 if (lex->sql_command == SQLCOM_SELECT)
1501 select_commands++;
1502 else if (sql_command_flags() & CF_STATUS_COMMAND)
1503 {
1504 /* Ignore 'SHOW ' commands */
1505 }
1506 else if (is_update_query(lex->sql_command))
1507 update_commands++;
1508 else
1509 other_commands++;
1510 }
1511}
1512
1513
1514void THD::update_all_stats()

Callers 5

sql_parse.ccFile · 0.45
mysql_parseFunction · 0.45
do_apply_eventMethod · 0.45
executeMethod · 0.45
executeMethod · 0.45

Calls 1

is_update_queryFunction · 0.70

Tested by

no test coverage detected