Skip to content

Commit f2c1c95

Browse files
committed
Fix cmake -DENABLED_PROFILING=OFF
1 parent 42fd537 commit f2c1c95

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sql/sql_parse.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* Copyright (c) 2000, 2017, Oracle and/or its affiliates.
2-
Copyright (c) 2008, 2018, MariaDB
2+
Copyright (c) 2008, 2019, MariaDB
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -3016,8 +3016,10 @@ mysql_execute_command(THD *thd)
30163016
else
30173017
{
30183018
WSREP_SYNC_WAIT(thd, WSREP_SYNC_WAIT_BEFORE_SHOW);
3019+
#ifdef ENABLED_PROFILING
30193020
if (lex->sql_command == SQLCOM_SHOW_PROFILE)
30203021
thd->profiling.discard_current_query();
3022+
#endif
30213023
}
30223024

30233025
thd->status_var.last_query_cost= 0.0;

0 commit comments

Comments
 (0)