Skip to content

Commit

Permalink
Fix cmake -DENABLED_PROFILING=OFF
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Mar 26, 2019
1 parent 42fd537 commit f2c1c95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sql/sql_parse.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* 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
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -3016,8 +3016,10 @@ mysql_execute_command(THD *thd)
else
{
WSREP_SYNC_WAIT(thd, WSREP_SYNC_WAIT_BEFORE_SHOW);
#ifdef ENABLED_PROFILING
if (lex->sql_command == SQLCOM_SHOW_PROFILE)
thd->profiling.discard_current_query();
#endif
}

thd->status_var.last_query_cost= 0.0;
Expand Down

0 comments on commit f2c1c95

Please sign in to comment.