mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Backport of DTrace patches from 6.0
This commit is contained in:
@ -31,6 +31,7 @@
|
||||
#include "mysql_priv.h"
|
||||
#include "sql_select.h"
|
||||
#include "sql_cursor.h"
|
||||
#include "probes_mysql.h"
|
||||
|
||||
#include <m_ctype.h>
|
||||
#include <my_bit.h>
|
||||
@ -241,6 +242,7 @@ bool handle_select(THD *thd, LEX *lex, select_result *result,
|
||||
bool res;
|
||||
register SELECT_LEX *select_lex = &lex->select_lex;
|
||||
DBUG_ENTER("handle_select");
|
||||
MYSQL_SELECT_START(thd->query);
|
||||
|
||||
if (select_lex->master_unit()->is_union() ||
|
||||
select_lex->master_unit()->fake_select_lex)
|
||||
@ -274,6 +276,7 @@ bool handle_select(THD *thd, LEX *lex, select_result *result,
|
||||
if (unlikely(res))
|
||||
result->abort();
|
||||
|
||||
MYSQL_SELECT_DONE((int) res, (ulong) thd->limit_found_rows);
|
||||
DBUG_RETURN(res);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user