~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Lee Bieber
  • Date: 2010-12-02 18:56:33 UTC
  • mfrom: (1966.3.1 bug683842)
  • mto: This revision was merged to the branch mainline in revision 1969.
  • Revision ID: kalebral@gmail.com-20101202185633-e27o1zhpev18dlsn
Merge Monty - fix bug 683842: remove generic catch blocks       

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (C) 1995, 2010, Innobase Oy. All Rights Reserved.
4
 
Copyright (C) 2008, 2009, Google Inc.
5
 
Copyright (C) 2009, Percona Inc.
 
3
Copyright (c) 1995, 2010, Innobase Oy. All Rights Reserved.
 
4
Copyright (c) 2008, 2009, Google Inc.
 
5
Copyright (c) 2009, Percona Inc.
6
6
 
7
7
Portions of this file contain modifications contributed and copyrighted by
8
8
Google, Inc. Those modifications are gratefully acknowledged and are described
48
48
#include "que0types.h"
49
49
#include "trx0types.h"
50
50
 
51
 
#include <string>
52
 
 
53
51
extern const char*      srv_main_thread_op_info;
54
52
 
55
53
/** Prefix used by MySQL to indicate pre-5.1 table name encoding */
56
 
/** LOOKIE HERE!!!! This used to be srv_mysql50_table_name_prefix[10]
57
 
    which was a buffer overrun, because it didn't allow for the trailing
58
 
    '\0'. Thanks C++! */
59
 
static const std::string srv_mysql50_table_name_prefix("#mysql50#");
 
54
extern const char       srv_mysql50_table_name_prefix[9];
60
55
 
61
56
/* When this event is set the lock timeout and InnoDB monitor
62
57
thread starts running */
63
58
extern os_event_t       srv_lock_timeout_thread_event;
64
59
 
65
 
/* The monitor thread waits on this event. */
66
 
extern os_event_t       srv_monitor_event;
67
 
 
68
 
/* The lock timeout thread waits on this event. */
69
 
extern os_event_t       srv_timeout_event;
70
 
 
71
 
/* The error monitor thread waits on this event. */
72
 
extern os_event_t       srv_error_event;
73
 
 
74
60
/* If the last data file is auto-extended, we add this many pages to it
75
61
at a time */
76
62
#define SRV_AUTO_EXTEND_INCREMENT       \
126
112
use simulated aio we build below with threads.
127
113
Currently we support native aio on windows and linux */
128
114
extern my_bool  srv_use_native_aio;
129
 
#ifdef __WIN__
130
 
extern ibool    srv_use_native_conditions;
131
 
#endif
132
115
extern ulint    srv_n_data_files;
133
116
extern char**   srv_data_file_names;
134
117
extern ulint*   srv_data_file_sizes;
183
166
#define PCT_IO(p) ((ulong) (srv_io_capacity * ((double) p / 100.0)))
184
167
 
185
168
#ifdef UNIV_LOG_ARCHIVE
186
 
extern ibool            srv_log_archive_on;
187
 
extern ibool            srv_archive_recovery;
188
 
extern ib_uint64_t      srv_archive_recovery_limit_lsn;
 
169
extern ibool    srv_log_archive_on;
 
170
extern ibool    srv_archive_recovery;
 
171
extern dulint   srv_archive_recovery_limit_lsn;
189
172
#endif /* UNIV_LOG_ARCHIVE */
190
173
 
191
174
extern char*    srv_file_flush_method_str;
244
227
extern ulong    srv_spin_wait_delay;
245
228
extern ibool    srv_priority_boost;
246
229
 
247
 
extern ulint    srv_truncated_status_writes;
248
230
 
249
231
#ifdef UNIV_DEBUG
250
232
extern  ibool   srv_print_thread_releases;
268
250
                                query threads, and lock table: we allocate
269
251
                                it from dynamic memory to get it to the
270
252
                                same DRAM page as other hotspot semaphores */
271
 
extern mutex_t* commit_id_mutex_temp;
272
 
 
273
253
#define kernel_mutex (*kernel_mutex_temp)
274
 
#define commit_id_mutex (*commit_id_mutex_temp)
275
254
 
276
255
#define SRV_MAX_N_IO_THREADS    130
277
256
 
665
644
os_thread_ret_t
666
645
srv_purge_thread(
667
646
/*=============*/
668
 
        void*   /*arg __attribute__((unused))*/); /*!< in: a dummy parameter
 
647
        void*   arg __attribute__((unused))); /*!< in: a dummy parameter
669
648
                                              required by os_thread_create */
670
649
 
671
650
/**********************************************************************//**
737
716
        ulint innodb_rows_inserted;             /*!< srv_n_rows_inserted */
738
717
        ulint innodb_rows_updated;              /*!< srv_n_rows_updated */
739
718
        ulint innodb_rows_deleted;              /*!< srv_n_rows_deleted */
740
 
        ulint innodb_truncated_status_writes;   /*!< srv_truncated_status_writes */
741
719
};
742
720
 
743
721
/** Thread slot in the thread table */
744
722
typedef struct srv_slot_struct  srv_slot_t;
745
 
 
 
723
  
746
724
/** Thread table is an array of slots */
747
725
typedef srv_slot_t      srv_table_t;
748
726