Drizzled Public API Documentation

srv0srv.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (C) 1995, 2011, Innobase Oy. All Rights Reserved.
4 Copyright (C) 2008, 2009, Google Inc.
5 Copyright (C) 2009, Percona Inc.
6 
7 Portions of this file contain modifications contributed and copyrighted by
8 Google, Inc. Those modifications are gratefully acknowledged and are described
9 briefly in the InnoDB documentation. The contributions by Google are
10 incorporated with their permission, and subject to the conditions contained in
11 the file COPYING.Google.
12 
13 Portions of this file contain modifications contributed and copyrighted
14 by Percona Inc.. Those modifications are
15 gratefully acknowledged and are described briefly in the InnoDB
16 documentation. The contributions by Percona Inc. are incorporated with
17 their permission, and subject to the conditions contained in the file
18 COPYING.Percona.
19 
20 This program is free software; you can redistribute it and/or modify it under
21 the terms of the GNU General Public License as published by the Free Software
22 Foundation; version 2 of the License.
23 
24 This program is distributed in the hope that it will be useful, but WITHOUT
25 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
26 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
27 
28 You should have received a copy of the GNU General Public License along with
29 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
30 St, Fifth Floor, Boston, MA 02110-1301 USA
31 
32 *****************************************************************************/
33 
34 /**************************************************/
41 #pragma once
42 #ifndef srv0srv_h
43 #define srv0srv_h
44 
45 #include "univ.i"
46 #ifndef UNIV_HOTBACKUP
47 #include "sync0sync.h"
48 #include "os0sync.h"
49 #include "que0types.h"
50 #include "trx0types.h"
51 
52 #include <string>
53 
54 extern const char* srv_main_thread_op_info;
55 
60 static const std::string srv_mysql50_table_name_prefix("#mysql50#");
61 
62 /* When this event is set the lock timeout and InnoDB monitor
63 thread starts running */
64 extern os_event_t srv_lock_timeout_thread_event;
65 
66 /* The monitor thread waits on this event. */
67 extern os_event_t srv_monitor_event;
68 
69 /* The lock timeout thread waits on this event. */
70 extern os_event_t srv_timeout_event;
71 
72 /* The error monitor thread waits on this event. */
73 extern os_event_t srv_error_event;
74 
75 /* If the last data file is auto-extended, we add this many pages to it
76 at a time */
77 #define SRV_AUTO_EXTEND_INCREMENT \
78  (srv_auto_extend_increment * ((1024 * 1024) / UNIV_PAGE_SIZE))
79 
80 /* This is set to the MySQL server value for this variable. */
81 extern uint srv_lower_case_table_names;
82 
83 /* Mutex for locking srv_monitor_file */
84 extern mutex_t srv_monitor_file_mutex;
85 /* Temporary file for innodb monitor output */
86 extern FILE* srv_monitor_file;
87 /* Mutex for locking srv_dict_tmpfile.
88 This mutex has a very high rank; threads reserving it should not
89 be holding any InnoDB latches. */
90 extern mutex_t srv_dict_tmpfile_mutex;
91 /* Temporary file for output from the data dictionary */
92 extern FILE* srv_dict_tmpfile;
93 /* Mutex for locking srv_misc_tmpfile.
94 This mutex has a very low rank; threads reserving it should not
95 acquire any further latches or sleep before releasing this one. */
96 extern mutex_t srv_misc_tmpfile_mutex;
97 /* Temporary file for miscellanous diagnostic output */
98 extern FILE* srv_misc_tmpfile;
99 
100 /* Server parameters which are read from the initfile */
101 
102 extern char* srv_data_home;
103 #ifdef UNIV_LOG_ARCHIVE
104 extern char* srv_arch_dir;
105 #endif /* UNIV_LOG_ARCHIVE */
106 
109 #ifndef UNIV_HOTBACKUP
110 extern my_bool srv_file_per_table;
111 #else
112 extern ibool srv_file_per_table;
113 #endif /* UNIV_HOTBACKUP */
114 
115 extern ulint srv_file_format;
119 extern ulint srv_max_file_format_at_startup;
122 extern ibool srv_locks_unsafe_for_binlog;
123 #endif /* !UNIV_HOTBACKUP */
124 
125 /* If this flag is TRUE, then we will use the native aio of the
126 OS (provided we compiled Innobase with it in), otherwise we will
127 use simulated aio we build below with threads.
128 Currently we support native aio on windows and linux */
129 extern my_bool srv_use_native_aio;
130 #ifdef __WIN__
131 extern ibool srv_use_native_conditions;
132 #endif
133 extern ulint srv_n_data_files;
134 extern char** srv_data_file_names;
135 extern ulint* srv_data_file_sizes;
136 extern ulint* srv_data_file_is_raw_partition;
137 
138 extern ibool srv_auto_extend_last_data_file;
139 extern ulint srv_last_file_size_max;
140 extern char** srv_log_group_home_dirs;
141 #ifndef UNIV_HOTBACKUP
142 extern unsigned int srv_auto_extend_increment;
143 
144 extern ibool srv_created_new_raw;
145 
146 extern ulint srv_n_log_groups;
147 extern ulint srv_n_log_files;
148 extern ulint srv_log_file_size;
149 extern ulint srv_log_buffer_size;
150 extern ulong srv_flush_log_at_trx_commit;
151 extern bool srv_adaptive_flushing;
152 
153 
154 /* The sort order table of the MySQL latin1_swedish_ci character set
155 collation */
156 #if defined(BUILD_DRIZZLE)
157 extern const byte srv_latin1_ordering[256];
158 extern bool srv_use_sys_malloc;
159 #else
160 extern const byte* srv_latin1_ordering;
161 # ifndef UNIV_HOTBACKUP
162 extern my_bool srv_use_sys_malloc;
163 # else
164 extern ibool srv_use_sys_malloc;
165 # endif /* UNIV_HOTBACKUP */
166 #endif /* BUILD_DRIZZLE */
167 extern ulint srv_buf_pool_size;
168 extern ulint srv_buf_pool_instances;
169 extern ulint srv_buf_pool_old_size;
170 extern ulint srv_buf_pool_curr_size;
171 extern ulint srv_mem_pool_size;
172 extern ulint srv_lock_table_size;
173 
174 extern ulint srv_n_file_io_threads;
175 extern ulong srv_read_ahead_threshold;
176 extern ulint srv_n_read_io_threads;
177 extern ulint srv_n_write_io_threads;
178 
179 /* Number of IO operations per second the server can do */
180 extern ulong srv_io_capacity;
181 /* Returns the number of IO operations that is X percent of the
182 capacity. PCT_IO(5) -> returns the number of IO operations that
183 is 5% of the max where max is srv_io_capacity. */
184 #define PCT_IO(p) ((ulong) (srv_io_capacity * ((double) p / 100.0)))
185 
186 /* The "innodb_stats_method" setting, decides how InnoDB is going
187 to treat NULL value when collecting statistics. It is not defined
188 as enum type because the configure option takes unsigned integer type. */
189 extern ulong srv_innodb_stats_method;
190 
191 #ifdef UNIV_LOG_ARCHIVE
192 extern ibool srv_log_archive_on;
193 extern ibool srv_archive_recovery;
194 extern ib_uint64_t srv_archive_recovery_limit_lsn;
195 #endif /* UNIV_LOG_ARCHIVE */
196 
197 extern char* srv_file_flush_method_str;
198 extern ulint srv_unix_file_flush_method;
199 extern ulint srv_win_file_flush_method;
200 
201 extern ulint srv_max_n_open_files;
202 
203 extern ulint srv_max_dirty_pages_pct;
204 
205 extern ulint srv_force_recovery;
206 extern ulong srv_thread_concurrency;
207 
208 extern ulint srv_max_n_threads;
209 
210 extern lint srv_conc_n_threads;
211 
212 extern ulint srv_fast_shutdown; /* If this is 1, do not do a
213  purge and index buffer merge.
214  If this 2, do not even flush the
215  buffer pool to data files at the
216  shutdown: we effectively 'crash'
217  InnoDB (but lose no committed
218  transactions). */
219 extern ibool srv_innodb_status;
220 
221 extern ib_uint64_t srv_stats_sample_pages;
222 
223 extern ibool srv_use_doublewrite_buf;
224 extern ibool srv_use_checksums;
225 
226 extern ulong srv_max_buf_pool_modified_pct;
227 extern ulong srv_max_purge_lag;
228 
229 extern ulong srv_replication_delay;
230 
231 extern uint64_t srv_ibuf_max_size;
232 extern uint32_t srv_ibuf_active_contract;
233 extern uint32_t srv_ibuf_accel_rate;
234 extern uint32_t srv_checkpoint_age_target;
235 extern uint32_t srv_flush_neighbor_pages;
236 extern uint32_t srv_read_ahead;
237 extern uint32_t srv_adaptive_flushing_method;
238 
239 extern ibool srv_read_only;
240 extern ibool srv_fake_write;
241 extern ibool srv_apply_log_only;
242 
243 /*-------------------------------------------*/
244 
245 extern ulint srv_n_rows_inserted;
246 extern ulint srv_n_rows_updated;
247 extern ulint srv_n_rows_deleted;
248 extern ulint srv_n_rows_read;
249 
250 extern ibool srv_print_innodb_monitor;
251 extern ibool srv_print_innodb_lock_monitor;
252 extern ibool srv_print_innodb_tablespace_monitor;
253 extern ibool srv_print_verbose_log;
254 extern ibool srv_print_innodb_table_monitor;
255 
256 extern ibool srv_lock_timeout_active;
257 extern ibool srv_monitor_active;
258 extern ibool srv_error_monitor_active;
259 
260 extern ulong srv_n_spin_wait_rounds;
261 extern ulong srv_n_free_tickets_to_enter;
262 extern ulong srv_thread_sleep_delay;
263 extern ulong srv_spin_wait_delay;
264 extern ibool srv_priority_boost;
265 
266 extern ulint srv_truncated_status_writes;
267 
268 #ifdef UNIV_DEBUG
269 extern ibool srv_print_thread_releases;
270 extern ibool srv_print_lock_waits;
271 extern ibool srv_print_buf_io;
272 extern ibool srv_print_log_io;
273 extern ibool srv_print_latch_waits;
274 #else /* UNIV_DEBUG */
275 # define srv_print_thread_releases FALSE
276 # define srv_print_lock_waits FALSE
277 # define srv_print_buf_io FALSE
278 # define srv_print_log_io FALSE
279 # define srv_print_latch_waits FALSE
280 #endif /* UNIV_DEBUG */
281 
282 extern ulint srv_activity_count;
283 extern ulint srv_fatal_semaphore_wait_threshold;
284 extern ulint srv_dml_needed_delay;
285 
286 extern mutex_t* kernel_mutex_temp;/* mutex protecting the server, trx structs,
287  query threads, and lock table: we allocate
288  it from dynamic memory to get it to the
289  same DRAM page as other hotspot semaphores */
290 extern mutex_t* commit_id_mutex_temp;
291 
292 #define kernel_mutex (*kernel_mutex_temp)
293 #define commit_id_mutex (*commit_id_mutex_temp)
294 
295 #define SRV_MAX_N_IO_THREADS 130
296 
297 /* Array of English strings describing the current state of an
298 i/o handler thread */
299 extern const char* srv_io_thread_op_info[];
300 extern const char* srv_io_thread_function[];
301 
302 /* the number of the log write requests done */
303 extern ulint srv_log_write_requests;
304 
305 /* the number of physical writes to the log performed */
306 extern ulint srv_log_writes;
307 
308 /* amount of data written to the log files in bytes */
309 extern ulint srv_os_log_written;
310 
311 /* amount of writes being done to the log files */
312 extern ulint srv_os_log_pending_writes;
313 
314 /* we increase this counter, when there we don't have enough space in the
315 log buffer and have to flush it */
316 extern ulint srv_log_waits;
317 
318 /* the number of purge threads to use from the worker pool (currently 0 or 1) */
319 extern ulong srv_n_purge_threads;
320 
321 /* the number of pages to purge in one batch */
322 extern ulong srv_purge_batch_size;
323 
324 /* the number of rollback segments to use */
325 extern ulong srv_rollback_segments;
326 
327 /* variable that counts amount of data read in total (in bytes) */
328 extern ulint srv_data_read;
329 
330 /* here we count the amount of data written in total (in bytes) */
331 extern ulint srv_data_written;
332 
333 /* this variable counts the amount of times, when the doublewrite buffer
334 was flushed */
335 extern ulint srv_dblwr_writes;
336 
337 /* here we store the number of pages that have been flushed to the
338 doublewrite buffer */
339 extern ulint srv_dblwr_pages_written;
340 
341 /* in this variable we store the number of write requests issued */
342 extern ulint srv_buf_pool_write_requests;
343 
344 /* here we store the number of times when we had to wait for a free page
345 in the buffer pool. It happens when the buffer pool is full and we need
346 to make a flush, in order to be able to read or create a page. */
347 extern ulint srv_buf_pool_wait_free;
348 
349 /* variable to count the number of pages that were written from the
350 buffer pool to disk */
351 extern ulint srv_buf_pool_flushed;
352 
355 extern ulint srv_buf_pool_reads;
356 
358 extern uint32_t srv_auto_lru_dump;
359 
362 
365 
367 typedef struct srv_sys_struct srv_sys_t;
368 
370 extern srv_sys_t* srv_sys;
371 
372 # ifdef UNIV_PFS_THREAD
373 /* Keys to register InnoDB threads with performance schema */
374 extern mysql_pfs_key_t trx_rollback_clean_thread_key;
375 extern mysql_pfs_key_t io_handler_thread_key;
376 extern mysql_pfs_key_t srv_lock_timeout_thread_key;
377 extern mysql_pfs_key_t srv_error_monitor_thread_key;
378 extern mysql_pfs_key_t srv_monitor_thread_key;
379 extern mysql_pfs_key_t srv_master_thread_key;
380 
381 /* This macro register the current thread and its key with performance
382 schema */
383 # define pfs_register_thread(key) \
384 do { \
385  if (PSI_server) { \
386  struct PSI_thread* psi = PSI_server->new_thread(key, NULL, 0);\
387  if (psi) { \
388  PSI_server->set_thread(psi); \
389  } \
390  } \
391 } while (0)
392 
393 /* This macro delist the current thread from performance schema */
394 # define pfs_delete_thread() \
395 do { \
396  if (PSI_server) { \
397  PSI_server->delete_current_thread(); \
398  } \
399 } while (0)
400 # endif /* UNIV_PFS_THREAD */
401 
402 #endif /* !UNIV_HOTBACKUP */
403 
405 enum {
410 };
411 
414 enum {
424 };
425 
427 enum {
430 };
431 
437 enum {
454 };
455 
456 /* Alternatives for srv_innodb_stats_method, which could be changed by
457 setting innodb_stats_method */
458 enum srv_stats_method_name_enum {
459  SRV_STATS_NULLS_EQUAL, /* All NULL values are treated as
460  equal. This is the default setting
461  for innodb_stats_method */
462  SRV_STATS_NULLS_UNEQUAL, /* All NULL values are treated as
463  NOT equal. */
464  SRV_STATS_NULLS_IGNORED /* NULL values are ignored */
465 };
466 
467 typedef enum srv_stats_method_name_enum srv_stats_method_name_t;
468 
469 #ifndef UNIV_HOTBACKUP
470 
476 };
477 
478 /*********************************************************************/
481 UNIV_INTERN
482 ulint
483 srv_boot(void);
484 /*==========*/
485 /*********************************************************************/
487 UNIV_INTERN
488 void
489 srv_init(void);
490 /*==========*/
491 /*********************************************************************/
493 UNIV_INTERN
494 void
495 srv_free(void);
496 /*==========*/
497 /*********************************************************************/
500 UNIV_INTERN
501 void
502 srv_general_init(void);
503 /*==================*/
504 /*********************************************************************/
507 UNIV_INTERN
508 ulint
509 srv_get_n_threads(void);
510 /*===================*/
511 /*********************************************************************/
514 UNIV_INTERN
515 ulint
517 /*=========================*/
518  enum srv_thread_type type);
519 /*********************************************************************/
521 UNIV_INTERN
522 void
524 /*======================*/
525  ulint i,
526  const char* str);
528 /*********************************************************************/
533 UNIV_INTERN
534 ulint
536 /*================*/
537  enum srv_thread_type type,
538  ulint n);
539 /*********************************************************************/
542 UNIV_INTERN
543 os_thread_ret_t
545 /*==============*/
546  void* arg);
548 /*******************************************************************/
550 UNIV_INTERN
551 void
553 /*=======================*/
554 /*******************************************************************/
560 UNIV_INTERN
561 void
563 /*===============================*/
564 /*******************************************************************/
566 UNIV_INTERN
567 void
569 /*========================*/
570 /*******************************************************************/
576 UNIV_INTERN
577 void
579 /*=====================================*/
580 /*********************************************************************/
583 UNIV_INTERN
584 void
586 /*==================*/
587  trx_t* trx);
589 /*********************************************************************/
592 UNIV_INTERN
593 void
595 /*========================*/
596  trx_t* trx);
598 /*********************************************************************/
601 UNIV_INTERN
602 void
604 /*=======================*/
605  trx_t* trx);
607 /*********************************************************************/
609 UNIV_INTERN
610 void
612 /*=================*/
613  trx_t* trx);
615 /***************************************************************/
621 UNIV_INTERN
622 void
624 /*=====================*/
625  que_thr_t* thr);
627 /********************************************************************/
630 UNIV_INTERN
631 void
633 /*==================================*/
634  que_thr_t* thr);
636 /*********************************************************************/
639 UNIV_INTERN
640 os_thread_ret_t
642 /*====================*/
643  void* arg);
645 /*********************************************************************/
648 UNIV_INTERN
649 os_thread_ret_t
651 /*===============*/
652  void* arg);
654 /*************************************************************************
655 A thread which prints warnings about semaphore waits which have lasted
656 too long. These can be used to track bugs which cause hangs.
657 @return a dummy parameter */
658 UNIV_INTERN
659 os_thread_ret_t
661 /*=====================*/
662  void* arg);
664 /*********************************************************************/
668 UNIV_INTERN
669 os_thread_ret_t
671 /*====================*/
672  void* arg);
674 /******************************************************************/
678 UNIV_INTERN
679 ibool
681 /*======================*/
682  FILE* file,
683  ibool nowait,
684  ulint* trx_start,
686  ulint* trx_end);
689 /******************************************************************/
691 UNIV_INTERN
692 void
694 /*==========================*/
695 
696 /******************************************************************/
698 UNIV_INTERN
699 void
701 /*=========================*/
702 
703 /*********************************************************************/
706 UNIV_INTERN
707 os_thread_ret_t
709 /*=============*/
710  void* /*arg __attribute__((unused))*/);
713 /**********************************************************************/
716 UNIV_INTERN
717 void
719 /*=====================*/
720  que_thr_t* thr);
722 /**********************************************************************/
725 UNIV_INTERN
726 ibool
728 /*======================================*/
729 
745 #ifdef UNIV_DEBUG
746  ulint innodb_buffer_pool_pages_latched;
747 #endif /* UNIV_DEBUG */
771  ib_int64_t innodb_row_lock_time;
783 };
784 
787 
790 
796 };
797 
798 extern ulint srv_n_threads_active[];
799 #else /* !UNIV_HOTBACKUP */
800 # define srv_use_adaptive_hash_indexes FALSE
801 # define srv_use_checksums TRUE
802 # define srv_use_native_aio FALSE
803 # define srv_force_recovery 0UL
804 # define srv_set_io_thread_op_info(t,info) ((void) 0)
805 # define srv_is_being_started 0
806 # define srv_win_file_flush_method SRV_WIN_IO_UNBUFFERED
807 # define srv_unix_file_flush_method SRV_UNIX_O_DSYNC
808 # define srv_start_raw_disk_in_use 0
809 # define srv_file_per_table 1
810 #endif /* !UNIV_HOTBACKUP */
811 
812 
813 #endif
UNIV_INTERN void srv_free(void)
Definition: srv0srv.cc:1165
ulint innodb_pages_read
Definition: srv0srv.h:767
UNIV_INTERN void srv_wake_purge_thread(void)
Definition: srv0srv.cc:2676
ulint innodb_row_lock_current_waits
Definition: srv0srv.h:770
UNIV_INTERN void srv_conc_enter_innodb(trx_t *trx)
Definition: srv0srv.cc:1213
ibool srv_locks_unsafe_for_binlog
Definition: srv0srv.cc:138
ulint innodb_os_log_fsyncs
Definition: srv0srv.h:762
ulint innodb_dblwr_writes
Definition: srv0srv.h:756
UNIV_INTERN os_thread_ret_t srv_error_monitor_thread(void *arg)
Definition: srv0srv.cc:2424
ulint innodb_data_read
Definition: srv0srv.h:736
UNIV_INTERN ulint srv_get_n_threads(void)
Definition: srv0srv.cc:873
ulint innodb_rows_updated
Definition: srv0srv.h:780
ulint innodb_buffer_pool_pages_total
Definition: srv0srv.h:740
ulint innodb_buffer_pool_read_ahead_evicted
Definition: srv0srv.h:754
UNIV_INTERN void srv_wake_master_thread(void)
Definition: srv0srv.cc:2660
ulint innodb_buffer_pool_reads
Definition: srv0srv.h:749
UNIV_INTERN void srv_set_io_thread_op_info(ulint i, const char *str)
Definition: srv0srv.cc:841
ulint innodb_row_lock_time_avg
Definition: srv0srv.h:773
UNIV_INTERN ulint srv_release_threads(enum srv_thread_type type, ulint n)
Definition: srv0srv.cc:1001
UNIV_INTERN void srv_active_wake_master_thread(void)
Definition: srv0srv.cc:2617
ulint innodb_row_lock_waits
Definition: srv0srv.h:769
ulint innodb_data_pending_reads
Definition: srv0srv.h:732
UNIV_INTERN void srv_general_init(void)
Definition: srv0srv.cc:1192
ulint innodb_buffer_pool_read_ahead
Definition: srv0srv.h:753
ulint innodb_os_log_pending_writes
Definition: srv0srv.h:763
const byte * srv_latin1_ordering
Definition: srv0srv.cc:246
UNIV_INTERN void srv_conc_exit_innodb(trx_t *trx)
Definition: srv0srv.cc:1455
ulint innodb_data_written
Definition: srv0srv.h:738
srv_slot_t srv_table_t
Definition: srv0srv.h:789
UNIV_INTERN os_thread_ret_t srv_monitor_thread(void *arg)
Definition: srv0srv.cc:2151
ulint srv_buf_pool_curr_size
Definition: srv0srv.cc:259
UNIV_INTERN void srv_init(void)
Definition: srv0srv.cc:1082
ulint innodb_data_reads
Definition: srv0srv.h:739
ulint innodb_os_log_written
Definition: srv0srv.h:761
uint32_t srv_auto_lru_dump
Definition: srv0srv.cc:375
ulint innodb_dblwr_pages_written
Definition: srv0srv.h:755
typedef UT_LIST_BASE_NODE_T(mutex_t) ut_list_base_node_t
ibool innodb_have_atomic_builtins
Definition: srv0srv.h:757
ulint innodb_buffer_pool_pages_dirty
Definition: srv0srv.h:742
UNIV_INTERN ulint srv_boot(void)
Definition: srv0srv.cc:1511
UNIV_INTERN void srv_que_task_enqueue_low(que_thr_t *thr)
Definition: srv0srv.cc:3579
ulint innodb_buffer_pool_read_requests
Definition: srv0srv.h:748
ulint innodb_rows_deleted
Definition: srv0srv.h:781
ulint innodb_buffer_pool_write_requests
Definition: srv0srv.h:752
ulint innodb_data_pending_fsyncs
Definition: srv0srv.h:734
ulint innodb_data_pending_writes
Definition: srv0srv.h:733
ulint innodb_log_waits
Definition: srv0srv.h:758
ulint innodb_data_fsyncs
Definition: srv0srv.h:735
ulint innodb_pages_created
Definition: srv0srv.h:766
ulint innodb_pages_written
Definition: srv0srv.h:768
ulint innodb_buffer_pool_pages_misc
Definition: srv0srv.h:743
ulint innodb_row_lock_time_max
Definition: srv0srv.h:776
ulint innodb_buffer_pool_pages_free
Definition: srv0srv.h:744
UNIV_INTERN os_thread_ret_t srv_master_thread(void *arg)
Definition: srv0srv.cc:2744
UNIV_INTERN os_thread_ret_t srv_LRU_dump_restore_thread(void *arg)
Definition: srv0srv.cc:2540
UNIV_INTERN void srv_conc_force_exit_innodb(trx_t *trx)
Definition: srv0srv.cc:1399
ulint innodb_buffer_pool_pages_flushed
Definition: srv0srv.h:751
my_bool srv_file_per_table
Definition: srv0srv.cc:125
ulint srv_buf_pool_reads
Definition: srv0srv.cc:372
UNIV_INTERN os_thread_ret_t srv_purge_thread(void *)
Definition: srv0srv.cc:3464
ulint srv_max_file_format_at_startup
Definition: srv0srv.cc:131
UNIV_INTERN void srv_suspend_mysql_thread(que_thr_t *thr)
Definition: srv0srv.cc:1610
ulint innodb_truncated_status_writes
Definition: srv0srv.h:782
srv_sys_t * srv_sys
Definition: srv0srv.cc:785
ulint innodb_page_size
Definition: srv0srv.h:765
ulint innodb_rows_read
Definition: srv0srv.h:778
UNIV_INTERN void srv_inc_activity_count(void)
ib_int64_t innodb_row_lock_time
Definition: srv0srv.h:771
static const std::string srv_mysql50_table_name_prefix("#mysql50#")
ulint innodb_rows_inserted
Definition: srv0srv.h:779
UNIV_INTERN os_thread_ret_t srv_lock_timeout_thread(void *arg)
Definition: srv0srv.cc:2316
UNIV_INTERN ibool trx_start(trx_t *trx, ulint rseg_id)
Definition: trx0trx.cc:676
ulint innodb_buffer_pool_pages_data
Definition: srv0srv.h:741
UNIV_INTERN ibool srv_is_any_background_thread_active(void)
Definition: srv0srv.cc:2589
export_struc export_vars
Definition: srv0srv.cc:378
UNIV_INTERN ulint srv_thread_has_reserved_slot(enum srv_thread_type type)
Definition: srv0srv.cc:1052
ulint innodb_os_log_pending_fsyncs
Definition: srv0srv.h:764
ulint srv_buf_pool_old_size
Definition: srv0srv.cc:257
ulint srv_file_format
Definition: srv0srv.cc:127
ulint innodb_buffer_pool_wait_free
Definition: srv0srv.h:750
UNIV_INTERN void srv_conc_force_enter_innodb(trx_t *trx)
Definition: srv0srv.cc:1373
UNIV_INTERN void srv_export_innodb_status(void)
Definition: srv0srv.cc:2061
ulint innodb_data_writes
Definition: srv0srv.h:737
UNIV_INTERN ibool srv_printf_innodb_monitor(FILE *file, ibool nowait, ulint *trx_start, ulint *trx_end)
Definition: srv0srv.cc:1869
ulint innodb_log_write_requests
Definition: srv0srv.h:759
UNIV_INTERN void srv_release_mysql_thread_if_suspended(que_thr_t *thr)
Definition: srv0srv.cc:1809
UNIV_INTERN void srv_wake_purge_thread_if_not_active(void)
Definition: srv0srv.cc:2640
ulint srv_buf_pool_size
Definition: srv0srv.cc:253
ulint srv_buf_pool_instances
Definition: srv0srv.cc:255
ulint innodb_log_writes
Definition: srv0srv.h:760
srv_thread_type
Definition: srv0srv.h:471
srv_table_t * threads
Definition: srv0srv.h:793