Commit 55da5f1f authored by Seppo Jaakola's avatar Seppo Jaakola

References: lp:1136303 - adapting wsrep status variable usage according to...

References: lp:1136303 - adapting wsrep status variable usage according to wsrep provider version 2.2 behavior
parent 3af84bb4
...@@ -2431,9 +2431,6 @@ mysql_execute_command(THD *thd) ...@@ -2431,9 +2431,6 @@ mysql_execute_command(THD *thd)
break; break;
case SQLCOM_SHOW_STATUS: case SQLCOM_SHOW_STATUS:
{ {
#ifdef WITH_WSREP
if (lex->sql_command == SQLCOM_SHOW_STATUS) wsrep_free_status(thd);
#endif /* WITH_WSREP */
execute_show_status(thd, all_tables); execute_show_status(thd, all_tables);
break; break;
} }
...@@ -5021,6 +5018,9 @@ static bool execute_sqlcom_select(THD *thd, TABLE_LIST *all_tables) ...@@ -5021,6 +5018,9 @@ static bool execute_sqlcom_select(THD *thd, TABLE_LIST *all_tables)
if (!thd->sent_row_count) if (!thd->sent_row_count)
status_var_increment(thd->status_var.empty_queries); status_var_increment(thd->status_var.empty_queries);
status_var_add(thd->status_var.rows_sent, thd->sent_row_count); status_var_add(thd->status_var.rows_sent, thd->sent_row_count);
#ifdef WITH_WSREP
if (lex->sql_command == SQLCOM_SHOW_STATUS) wsrep_free_status(thd);
#endif /* WITH_WSREP */
return res; return res;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment