There was an error while loading. Please reload this page.
2 parents 226ca25 + f2c1c95 commit ac49345Copy full SHA for ac49345
sql/sql_parse.cc
@@ -1,5 +1,5 @@
1
/* Copyright (c) 2000, 2017, Oracle and/or its affiliates.
2
- Copyright (c) 2008, 2018, MariaDB
+ Copyright (c) 2008, 2019, MariaDB
3
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
@@ -3511,8 +3511,10 @@ mysql_execute_command(THD *thd)
3511
else
3512
{
3513
WSREP_SYNC_WAIT(thd, WSREP_SYNC_WAIT_BEFORE_SHOW);
3514
+#ifdef ENABLED_PROFILING
3515
if (lex->sql_command == SQLCOM_SHOW_PROFILE)
3516
thd->profiling.discard_current_query();
3517
+#endif
3518
}
3519
3520
thd->status_var.last_query_cost= 0.0;
0 commit comments