diff options
author | Sergei Golubchik <serg@mariadb.org> | 2014-10-16 00:30:29 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2014-10-16 00:30:29 +0200 |
commit | 1e79138459038c39c85239a825bf1727ef43c156 (patch) | |
tree | 88f725551c0f061487fde0ee5a6c0ea471b24abc /sql/sql_class.h | |
parent | 7aed441963823191e94da3df069e123dc8794eee (diff) | |
parent | 42f359f9827340bf430a9f1a0bda9b059951ea08 (diff) | |
download | mariadb-git-1e79138459038c39c85239a825bf1727ef43c156.tar.gz |
Merge branch 'bb-10.1-merge' into 10.1mariadb-10.1.1
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index 9fe524b5fe6..ef2f2cd420e 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -524,6 +524,14 @@ typedef struct system_variables ulonglong sortbuff_size; ulonglong group_concat_max_len; ulonglong default_regex_flags; + + /** + Place holders to store Multi-source variables in sys_var.cc during + update and show of variables. + */ + ulonglong slave_skip_counter; + ulonglong max_relay_log_size; + ha_rows select_limit; ha_rows max_join_size; ha_rows expensive_subquery_limit; @@ -589,12 +597,6 @@ typedef struct system_variables */ uint32 gtid_domain_id; uint64 gtid_seq_no; - /** - Place holders to store Multi-source variables in sys_var.cc during - update and show of variables. - */ - ulong slave_skip_counter; - ulong max_relay_log_size; /** Default transaction access mode. READ ONLY (true) or READ WRITE (false). @@ -714,6 +716,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; @@ -768,6 +771,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, @@ -1371,7 +1381,8 @@ enum enum_thread_type SYSTEM_THREAD_SLAVE_SQL= 4, SYSTEM_THREAD_EVENT_SCHEDULER= 8, SYSTEM_THREAD_EVENT_WORKER= 16, - SYSTEM_THREAD_BINLOG_BACKGROUND= 32 + SYSTEM_THREAD_BINLOG_BACKGROUND= 32, + SYSTEM_THREAD_SLAVE_INIT= 64 }; inline char const * @@ -1386,6 +1397,7 @@ show_system_thread(enum_thread_type thread) RETURN_NAME_AS_STRING(SYSTEM_THREAD_SLAVE_SQL); RETURN_NAME_AS_STRING(SYSTEM_THREAD_EVENT_SCHEDULER); RETURN_NAME_AS_STRING(SYSTEM_THREAD_EVENT_WORKER); + RETURN_NAME_AS_STRING(SYSTEM_THREAD_SLAVE_INIT); default: sprintf(buf, "<UNKNOWN SYSTEM THREAD: %d>", thread); return buf; @@ -1753,6 +1765,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. @@ -2510,8 +2524,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 |