mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge next-mr -> next-4284.
This commit is contained in:
@ -338,7 +338,7 @@ void PROFILING::start_new_query(const char *initial_state)
|
||||
finish_current_query();
|
||||
}
|
||||
|
||||
enabled= (((thd)->options & OPTION_PROFILING) != 0);
|
||||
enabled= ((thd->variables.option_bits & OPTION_PROFILING) != 0);
|
||||
|
||||
if (! enabled) DBUG_VOID_RETURN;
|
||||
|
||||
@ -376,7 +376,7 @@ void PROFILING::finish_current_query()
|
||||
status_change("ending", NULL, NULL, 0);
|
||||
|
||||
if ((enabled) && /* ON at start? */
|
||||
((thd->options & OPTION_PROFILING) != 0) && /* and ON at end? */
|
||||
((thd->variables.option_bits & OPTION_PROFILING) != 0) && /* and ON at end? */
|
||||
(current->query_source != NULL) &&
|
||||
(! current->entries.is_empty()))
|
||||
{
|
||||
|
Reference in New Issue
Block a user