~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/srv0srv.h

Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
Created 10/10/1995 Heikki Tuuri
39
39
*******************************************************/
40
40
 
 
41
#pragma once
41
42
#ifndef srv0srv_h
42
43
#define srv0srv_h
43
44
 
48
49
#include "que0types.h"
49
50
#include "trx0types.h"
50
51
 
 
52
#include <string>
 
53
 
51
54
extern const char*      srv_main_thread_op_info;
52
55
 
53
56
/** Prefix used by MySQL to indicate pre-5.1 table name encoding */
54
 
extern const char       srv_mysql50_table_name_prefix[9];
 
57
/** LOOKIE HERE!!!! This used to be srv_mysql50_table_name_prefix[10]
 
58
    which was a buffer overrun, because it didn't allow for the trailing
 
59
    '\0'. Thanks C++! */
 
60
static const std::string srv_mysql50_table_name_prefix("#mysql50#");
55
61
 
56
62
/* When this event is set the lock timeout and InnoDB monitor
57
63
thread starts running */
58
64
extern os_event_t       srv_lock_timeout_thread_event;
59
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
 
60
75
/* If the last data file is auto-extended, we add this many pages to it
61
76
at a time */
62
77
#define SRV_AUTO_EXTEND_INCREMENT       \
254
269
                                query threads, and lock table: we allocate
255
270
                                it from dynamic memory to get it to the
256
271
                                same DRAM page as other hotspot semaphores */
 
272
extern mutex_t* commit_id_mutex_temp;
 
273
 
257
274
#define kernel_mutex (*kernel_mutex_temp)
 
275
#define commit_id_mutex (*commit_id_mutex_temp)
258
276
 
259
277
#define SRV_MAX_N_IO_THREADS    130
260
278
 
648
666
os_thread_ret_t
649
667
srv_purge_thread(
650
668
/*=============*/
651
 
        void*   arg __attribute__((unused))); /*!< in: a dummy parameter
 
669
        void*   /*arg __attribute__((unused))*/); /*!< in: a dummy parameter
652
670
                                              required by os_thread_create */
653
671
 
654
672
/**********************************************************************//**