Commit f2c1c959 authored by Marko Mäkelä's avatar Marko Mäkelä

Fix cmake -DENABLED_PROFILING=OFF

parent 42fd5372
/* Copyright (c) 2000, 2017, Oracle and/or its affiliates. /* Copyright (c) 2000, 2017, Oracle and/or its affiliates.
Copyright (c) 2008, 2018, MariaDB Copyright (c) 2008, 2019, MariaDB
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -3016,8 +3016,10 @@ mysql_execute_command(THD *thd) ...@@ -3016,8 +3016,10 @@ mysql_execute_command(THD *thd)
else else
{ {
WSREP_SYNC_WAIT(thd, WSREP_SYNC_WAIT_BEFORE_SHOW); WSREP_SYNC_WAIT(thd, WSREP_SYNC_WAIT_BEFORE_SHOW);
#ifdef ENABLED_PROFILING
if (lex->sql_command == SQLCOM_SHOW_PROFILE) if (lex->sql_command == SQLCOM_SHOW_PROFILE)
thd->profiling.discard_current_query(); thd->profiling.discard_current_query();
#endif
} }
thd->status_var.last_query_cost= 0.0; thd->status_var.last_query_cost= 0.0;
......
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