mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge 11.0 into 11.1
This commit is contained in:
@ -51,6 +51,7 @@
|
||||
#include "backup.h"
|
||||
#include "xa.h"
|
||||
#include "ddl_log.h" /* DDL_LOG_STATE */
|
||||
#include "ha_handler_stats.h" // ha_handler_stats */
|
||||
|
||||
extern "C"
|
||||
void set_thd_stage_info(void *thd,
|
||||
@ -1856,6 +1857,7 @@ public:
|
||||
ulonglong cuted_fields, sent_row_count, examined_row_count;
|
||||
ulonglong affected_rows;
|
||||
ulonglong bytes_sent_old;
|
||||
ha_handler_stats handler_stats;
|
||||
ulong tmp_tables_used;
|
||||
ulong tmp_tables_disk_used;
|
||||
ulong query_plan_fsort_passes;
|
||||
@ -2693,6 +2695,7 @@ public:
|
||||
struct system_status_var status_var; // Per thread statistic vars
|
||||
struct system_status_var org_status_var; // For user statistics
|
||||
struct system_status_var *initial_status_var; /* used by show status */
|
||||
ha_handler_stats handler_stats; // Handler statistics
|
||||
THR_LOCK_INFO lock_info; // Locking info of this thread
|
||||
|
||||
/**
|
||||
@ -5606,6 +5609,12 @@ public:
|
||||
lex= backup_lex;
|
||||
}
|
||||
|
||||
bool should_collect_handler_stats() const
|
||||
{
|
||||
return (variables.log_slow_verbosity & LOG_SLOW_VERBOSITY_ENGINE) ||
|
||||
lex->analyze_stmt;
|
||||
}
|
||||
|
||||
bool vers_insert_history_fast(const TABLE *table)
|
||||
{
|
||||
DBUG_ASSERT(table->versioned());
|
||||
|
Reference in New Issue
Block a user