mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
bzr merge -r4346 maria/10.0 (maria-10.0.13)
This commit is contained in:
@ -721,6 +721,7 @@ typedef struct system_status_var
|
||||
ulong filesort_range_count_;
|
||||
ulong filesort_rows_;
|
||||
ulong filesort_scan_count_;
|
||||
ulong filesort_pq_sorts_;
|
||||
/* Prepared statements and binary protocol */
|
||||
ulong com_stmt_prepare;
|
||||
ulong com_stmt_reprepare;
|
||||
@ -774,6 +775,13 @@ typedef struct system_status_var
|
||||
#define last_system_status_var questions
|
||||
#define last_cleared_system_status_var memory_used
|
||||
|
||||
/*
|
||||
Global status variables
|
||||
*/
|
||||
|
||||
extern ulong feature_files_opened_with_delayed_keys;
|
||||
|
||||
|
||||
void add_to_status(STATUS_VAR *to_var, STATUS_VAR *from_var);
|
||||
|
||||
void add_diff_to_status(STATUS_VAR *to_var, STATUS_VAR *from_var,
|
||||
@ -1374,7 +1382,8 @@ enum enum_thread_type
|
||||
SYSTEM_THREAD_NDBCLUSTER_BINLOG= 8,
|
||||
SYSTEM_THREAD_EVENT_SCHEDULER= 16,
|
||||
SYSTEM_THREAD_EVENT_WORKER= 32,
|
||||
SYSTEM_THREAD_BINLOG_BACKGROUND= 64
|
||||
SYSTEM_THREAD_BINLOG_BACKGROUND= 64,
|
||||
SYSTEM_THREAD_SLAVE_INIT= 128,
|
||||
};
|
||||
|
||||
inline char const *
|
||||
@ -1757,6 +1766,8 @@ struct wait_for_commit
|
||||
{
|
||||
if (waitee)
|
||||
unregister_wait_for_prior_commit2();
|
||||
else
|
||||
wakeup_error= 0;
|
||||
}
|
||||
/*
|
||||
Remove a waiter from the list in the waitee. Used to unregister a wait.
|
||||
@ -2514,8 +2525,6 @@ public:
|
||||
/** Idle instrumentation state. */
|
||||
PSI_idle_locker_state m_idle_state;
|
||||
#endif /* HAVE_PSI_IDLE_INTERFACE */
|
||||
/** True if the server code is IDLE for this connection. */
|
||||
bool m_server_idle;
|
||||
|
||||
/*
|
||||
Id of current query. Statement can be reused to execute several queries
|
||||
@ -2948,6 +2957,11 @@ public:
|
||||
|
||||
// End implementation of MDL_context_owner interface.
|
||||
|
||||
inline bool use_cond_push(handler *file)
|
||||
{
|
||||
return (variables.optimizer_switch & OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN)
|
||||
|| (file->ha_table_flags() & HA_MUST_USE_TABLE_CONDITION_PUSHDOWN);
|
||||
}
|
||||
inline bool is_strict_mode() const
|
||||
{
|
||||
return (bool) (variables.sql_mode & (MODE_STRICT_TRANS_TABLES |
|
||||
|
Reference in New Issue
Block a user