~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/******************************************************
 
2
The server main program
 
3
 
 
4
(c) 1995 Innobase Oy
 
5
 
 
6
Created 10/10/1995 Heikki Tuuri
 
7
*******************************************************/
 
8
 
 
9
 
 
10
#ifndef srv0srv_h
 
11
#define srv0srv_h
 
12
 
 
13
#include "univ.i"
 
14
#include "sync0sync.h"
 
15
#include "os0sync.h"
 
16
#include "que0types.h"
 
17
#include "trx0types.h"
 
18
 
 
19
extern const char*      srv_main_thread_op_info;
 
20
 
 
21
/* Prefix used by MySQL to indicate pre-5.1 table name encoding */
 
22
extern const char       srv_mysql50_table_name_prefix[9];
 
23
 
 
24
/* When this event is set the lock timeout and InnoDB monitor
 
25
thread starts running */
 
26
extern os_event_t       srv_lock_timeout_thread_event;
 
27
 
 
28
/* If the last data file is auto-extended, we add this many pages to it
 
29
at a time */
 
30
#define SRV_AUTO_EXTEND_INCREMENT       \
 
31
        (srv_auto_extend_increment * ((1024 * 1024) / UNIV_PAGE_SIZE))
 
32
 
 
33
/* This is set to TRUE if the MySQL user has set it in MySQL */
 
34
extern ibool    srv_lower_case_table_names;
 
35
 
 
36
/* Mutex for locking srv_monitor_file */
 
37
extern mutex_t  srv_monitor_file_mutex;
 
38
/* Temporary file for innodb monitor output */
 
39
extern FILE*    srv_monitor_file;
 
40
/* Mutex for locking srv_dict_tmpfile.
 
41
This mutex has a very high rank; threads reserving it should not
 
42
be holding any InnoDB latches. */
 
43
extern mutex_t  srv_dict_tmpfile_mutex;
 
44
/* Temporary file for output from the data dictionary */
 
45
extern FILE*    srv_dict_tmpfile;
 
46
/* Mutex for locking srv_misc_tmpfile.
 
47
This mutex has a very low rank; threads reserving it should not
 
48
acquire any further latches or sleep before releasing this one. */
 
49
extern mutex_t  srv_misc_tmpfile_mutex;
 
50
/* Temporary file for miscellanous diagnostic output */
 
51
extern FILE*    srv_misc_tmpfile;
 
52
 
 
53
/* Server parameters which are read from the initfile */
 
54
 
 
55
extern char*    srv_data_home;
 
56
#ifdef UNIV_LOG_ARCHIVE
 
57
extern char*    srv_arch_dir;
 
58
#endif /* UNIV_LOG_ARCHIVE */
 
59
 
 
60
extern ibool    srv_file_per_table;
 
61
extern ibool    srv_locks_unsafe_for_binlog;
 
62
 
 
63
extern ulint    srv_n_data_files;
 
64
extern char**   srv_data_file_names;
 
65
extern ulint*   srv_data_file_sizes;
 
66
extern ulint*   srv_data_file_is_raw_partition;
 
67
 
 
68
extern ibool    srv_auto_extend_last_data_file;
 
69
extern ulint    srv_last_file_size_max;
 
70
extern ulong    srv_auto_extend_increment;
 
71
 
 
72
extern ibool    srv_created_new_raw;
 
73
 
 
74
#define SRV_NEW_RAW     1
 
75
#define SRV_OLD_RAW     2
 
76
 
 
77
extern char**   srv_log_group_home_dirs;
 
78
 
 
79
extern ulint    srv_n_log_groups;
 
80
extern ulint    srv_n_log_files;
 
81
extern ulint    srv_log_file_size;
 
82
extern ulint    srv_log_buffer_size;
 
83
extern ulong    srv_flush_log_at_trx_commit;
 
84
 
 
85
extern byte     srv_latin1_ordering[256];/* The sort order table of the latin1
 
86
                                        character set */
 
87
extern ulint    srv_pool_size;
 
88
extern ulint    srv_awe_window_size;
 
89
extern ulint    srv_mem_pool_size;
 
90
extern ulint    srv_lock_table_size;
 
91
 
 
92
extern ulint    srv_n_file_io_threads;
 
93
 
 
94
#ifdef UNIV_LOG_ARCHIVE
 
95
extern ibool    srv_log_archive_on;
 
96
extern ibool    srv_archive_recovery;
 
97
extern dulint   srv_archive_recovery_limit_lsn;
 
98
#endif /* UNIV_LOG_ARCHIVE */
 
99
 
 
100
extern ulint    srv_lock_wait_timeout;
 
101
 
 
102
extern char*    srv_file_flush_method_str;
 
103
extern ulint    srv_unix_file_flush_method;
 
104
extern ulint    srv_win_file_flush_method;
 
105
 
 
106
extern ulint    srv_max_n_open_files;
 
107
 
 
108
extern ulint    srv_max_dirty_pages_pct;
 
109
 
 
110
extern ulint    srv_force_recovery;
 
111
extern ulong    srv_thread_concurrency;
 
112
 
 
113
extern ulint    srv_max_n_threads;
 
114
 
 
115
extern lint     srv_conc_n_threads;
 
116
 
 
117
extern ulint    srv_fast_shutdown;       /* If this is 1, do not do a
 
118
                                         purge and index buffer merge.
 
119
                                         If this 2, do not even flush the
 
120
                                         buffer pool to data files at the
 
121
                                         shutdown: we effectively 'crash'
 
122
                                         InnoDB (but lose no committed
 
123
                                         transactions). */
 
124
extern ibool    srv_innodb_status;
 
125
 
 
126
extern ibool    srv_use_doublewrite_buf;
 
127
extern ibool    srv_use_checksums;
 
128
 
 
129
extern ibool    srv_set_thread_priorities;
 
130
extern int      srv_query_thread_priority;
 
131
 
 
132
extern ulong    srv_max_buf_pool_modified_pct;
 
133
extern ulong    srv_max_purge_lag;
 
134
extern ibool    srv_use_awe;
 
135
extern ibool    srv_use_adaptive_hash_indexes;
 
136
/*-------------------------------------------*/
 
137
 
 
138
extern ulint    srv_n_rows_inserted;
 
139
extern ulint    srv_n_rows_updated;
 
140
extern ulint    srv_n_rows_deleted;
 
141
extern ulint    srv_n_rows_read;
 
142
 
 
143
extern ibool    srv_print_innodb_monitor;
 
144
extern ibool    srv_print_innodb_lock_monitor;
 
145
extern ibool    srv_print_innodb_tablespace_monitor;
 
146
extern ibool    srv_print_verbose_log;
 
147
extern ibool    srv_print_innodb_table_monitor;
 
148
 
 
149
extern ibool    srv_lock_timeout_active;
 
150
extern ibool    srv_monitor_active;
 
151
extern ibool    srv_error_monitor_active;
 
152
 
 
153
extern ulong    srv_n_spin_wait_rounds;
 
154
extern ulong    srv_n_free_tickets_to_enter;
 
155
extern ulong    srv_thread_sleep_delay;
 
156
extern ulint    srv_spin_wait_delay;
 
157
extern ibool    srv_priority_boost;
 
158
 
 
159
extern  ulint   srv_pool_size;
 
160
extern  ulint   srv_mem_pool_size;
 
161
extern  ulint   srv_lock_table_size;
 
162
 
 
163
extern  ibool   srv_print_thread_releases;
 
164
extern  ibool   srv_print_lock_waits;
 
165
extern  ibool   srv_print_buf_io;
 
166
extern  ibool   srv_print_log_io;
 
167
extern  ibool   srv_print_latch_waits;
 
168
 
 
169
extern ulint    srv_activity_count;
 
170
extern ulint    srv_fatal_semaphore_wait_threshold;
 
171
extern ulint    srv_dml_needed_delay;
 
172
 
 
173
extern mutex_t* kernel_mutex_temp;/* mutex protecting the server, trx structs,
 
174
                                query threads, and lock table: we allocate
 
175
                                it from dynamic memory to get it to the
 
176
                                same DRAM page as other hotspot semaphores */
 
177
#define kernel_mutex (*kernel_mutex_temp)
 
178
 
 
179
#define SRV_MAX_N_IO_THREADS    100
 
180
 
 
181
/* Array of English strings describing the current state of an
 
182
i/o handler thread */
 
183
extern const char* srv_io_thread_op_info[];
 
184
extern const char* srv_io_thread_function[];
 
185
 
 
186
/* the number of the log write requests done */
 
187
extern ulint srv_log_write_requests;
 
188
 
 
189
/* the number of physical writes to the log performed */
 
190
extern ulint srv_log_writes;
 
191
 
 
192
/* amount of data written to the log files in bytes */
 
193
extern ulint srv_os_log_written;
 
194
 
 
195
/* amount of writes being done to the log files */
 
196
extern ulint srv_os_log_pending_writes;
 
197
 
 
198
/* we increase this counter, when there we don't have enough space in the
 
199
log buffer and have to flush it */
 
200
extern ulint srv_log_waits;
 
201
 
 
202
/* variable that counts amount of data read in total (in bytes) */
 
203
extern ulint srv_data_read;
 
204
 
 
205
/* here we count the amount of data written in total (in bytes) */
 
206
extern ulint srv_data_written;
 
207
 
 
208
/* this variable counts the amount of times, when the doublewrite buffer
 
209
was flushed */
 
210
extern ulint srv_dblwr_writes;
 
211
 
 
212
/* here we store the number of pages that have been flushed to the
 
213
doublewrite buffer */
 
214
extern ulint srv_dblwr_pages_written;
 
215
 
 
216
/* in this variable we store the number of write requests issued */
 
217
extern ulint srv_buf_pool_write_requests;
 
218
 
 
219
/* here we store the number of times when we had to wait for a free page
 
220
in the buffer pool. It happens when the buffer pool is full and we need
 
221
to make a flush, in order to be able to read or create a page. */
 
222
extern ulint srv_buf_pool_wait_free;
 
223
 
 
224
/* variable to count the number of pages that were written from the
 
225
buffer pool to disk */
 
226
extern ulint srv_buf_pool_flushed;
 
227
 
 
228
/* variable to count the number of buffer pool reads that led to the
 
229
reading of a disk page */
 
230
extern ulint srv_buf_pool_reads;
 
231
 
 
232
/* variable to count the number of sequential read-aheads were done */
 
233
extern ulint srv_read_ahead_seq;
 
234
 
 
235
/* variable to count the number of random read-aheads were done */
 
236
extern ulint srv_read_ahead_rnd;
 
237
 
 
238
/* An option to enable the fix for "Bug#43660 SHOW INDEXES/ANALYZE does
 
239
NOT update cardinality for indexes of InnoDB table". By default we are
 
240
running with the fix disabled because MySQL 5.1 is frozen for such
 
241
behavioral changes. */
 
242
extern char srv_use_legacy_cardinality_algorithm;
 
243
 
 
244
/* In this structure we store status variables to be passed to MySQL */
 
245
typedef struct export_var_struct export_struc;
 
246
 
 
247
extern export_struc export_vars;
 
248
 
 
249
typedef struct srv_sys_struct   srv_sys_t;
 
250
 
 
251
/* The server system */
 
252
extern srv_sys_t*       srv_sys;
 
253
 
 
254
/* Alternatives for the file flush option in Unix; see the InnoDB manual
 
255
about what these mean */
 
256
#define SRV_UNIX_FSYNC          1       /* This is the default */
 
257
#define SRV_UNIX_O_DSYNC        2
 
258
#define SRV_UNIX_LITTLESYNC     3
 
259
#define SRV_UNIX_NOSYNC         4
 
260
#define SRV_UNIX_O_DIRECT       5
 
261
 
 
262
/* Alternatives for file i/o in Windows */
 
263
#define SRV_WIN_IO_NORMAL               1
 
264
#define SRV_WIN_IO_UNBUFFERED           2       /* This is the default */
 
265
 
 
266
/* Alternatives for srv_force_recovery. Non-zero values are intended
 
267
to help the user get a damaged database up so that he can dump intact
 
268
tables and rows with SELECT INTO OUTFILE. The database must not otherwise
 
269
be used with these options! A bigger number below means that all precautions
 
270
of lower numbers are included. */
 
271
 
 
272
#define SRV_FORCE_IGNORE_CORRUPT 1      /* let the server run even if it
 
273
                                        detects a corrupt page */
 
274
#define SRV_FORCE_NO_BACKGROUND 2       /* prevent the main thread from
 
275
                                        running: if a crash would occur
 
276
                                        in purge, this prevents it */
 
277
#define SRV_FORCE_NO_TRX_UNDO   3       /* do not run trx rollback after
 
278
                                        recovery */
 
279
#define SRV_FORCE_NO_IBUF_MERGE 4       /* prevent also ibuf operations:
 
280
                                        if they would cause a crash, better
 
281
                                        not do them */
 
282
#define SRV_FORCE_NO_UNDO_LOG_SCAN 5    /* do not look at undo logs when
 
283
                                        starting the database: InnoDB will
 
284
                                        treat even incomplete transactions
 
285
                                        as committed */
 
286
#define SRV_FORCE_NO_LOG_REDO   6       /* do not do the log roll-forward
 
287
                                        in connection with recovery */
 
288
 
 
289
/*************************************************************************
 
290
Boots Innobase server. */
 
291
 
 
292
ulint
 
293
srv_boot(void);
 
294
/*==========*/
 
295
                        /* out: DB_SUCCESS or error code */
 
296
/*************************************************************************
 
297
Initializes the server. */
 
298
 
 
299
void
 
300
srv_init(void);
 
301
/*==========*/
 
302
/*************************************************************************
 
303
Frees the OS fast mutex created in srv_boot(). */
 
304
 
 
305
void
 
306
srv_free(void);
 
307
/*==========*/
 
308
/*************************************************************************
 
309
Initializes the synchronization primitives, memory system, and the thread
 
310
local storage. */
 
311
 
 
312
void
 
313
srv_general_init(void);
 
314
/*==================*/
 
315
/*************************************************************************
 
316
Gets the number of threads in the system. */
 
317
 
 
318
ulint
 
319
srv_get_n_threads(void);
 
320
/*===================*/
 
321
/*************************************************************************
 
322
Returns the calling thread type. */
 
323
 
 
324
ulint
 
325
srv_get_thread_type(void);
 
326
/*=====================*/
 
327
                        /* out: SRV_COM, ... */
 
328
/*************************************************************************
 
329
Sets the info describing an i/o thread current state. */
 
330
 
 
331
void
 
332
srv_set_io_thread_op_info(
 
333
/*======================*/
 
334
        ulint           i,      /* in: the 'segment' of the i/o thread */
 
335
        const char*     str);   /* in: constant char string describing the
 
336
                                state */
 
337
/*************************************************************************
 
338
Releases threads of the type given from suspension in the thread table.
 
339
NOTE! The server mutex has to be reserved by the caller! */
 
340
 
 
341
ulint
 
342
srv_release_threads(
 
343
/*================*/
 
344
                        /* out: number of threads released: this may be
 
345
                        < n if not enough threads were suspended at the
 
346
                        moment */
 
347
        ulint   type,   /* in: thread type */
 
348
        ulint   n);     /* in: number of threads to release */
 
349
/*************************************************************************
 
350
The master thread controlling the server. */
 
351
 
 
352
os_thread_ret_t
 
353
srv_master_thread(
 
354
/*==============*/
 
355
                        /* out: a dummy parameter */
 
356
        void*   arg);   /* in: a dummy parameter required by
 
357
                        os_thread_create */
 
358
/***********************************************************************
 
359
Tells the Innobase server that there has been activity in the database
 
360
and wakes up the master thread if it is suspended (not sleeping). Used
 
361
in the MySQL interface. Note that there is a small chance that the master
 
362
thread stays suspended (we do not protect our operation with the kernel
 
363
mutex, for performace reasons). */
 
364
 
 
365
void
 
366
srv_active_wake_master_thread(void);
 
367
/*===============================*/
 
368
/***********************************************************************
 
369
Wakes up the master thread if it is suspended or being suspended. */
 
370
 
 
371
void
 
372
srv_wake_master_thread(void);
 
373
/*========================*/
 
374
/*************************************************************************
 
375
Puts an OS thread to wait if there are too many concurrent threads
 
376
(>= srv_thread_concurrency) inside InnoDB. The threads wait in a FIFO queue. */
 
377
 
 
378
void
 
379
srv_conc_enter_innodb(
 
380
/*==================*/
 
381
        trx_t*  trx);   /* in: transaction object associated with the
 
382
                        thread */
 
383
/*************************************************************************
 
384
This lets a thread enter InnoDB regardless of the number of threads inside
 
385
InnoDB. This must be called when a thread ends a lock wait. */
 
386
 
 
387
void
 
388
srv_conc_force_enter_innodb(
 
389
/*========================*/
 
390
        trx_t*  trx);   /* in: transaction object associated with the
 
391
                        thread */
 
392
/*************************************************************************
 
393
This must be called when a thread exits InnoDB in a lock wait or at the
 
394
end of an SQL statement. */
 
395
 
 
396
void
 
397
srv_conc_force_exit_innodb(
 
398
/*=======================*/
 
399
        trx_t*  trx);   /* in: transaction object associated with the
 
400
                        thread */
 
401
/*************************************************************************
 
402
This must be called when a thread exits InnoDB. */
 
403
 
 
404
void
 
405
srv_conc_exit_innodb(
 
406
/*=================*/
 
407
        trx_t*  trx);   /* in: transaction object associated with the
 
408
                        thread */
 
409
/*******************************************************************
 
410
Puts a MySQL OS thread to wait for a lock to be released. If an error
 
411
occurs during the wait trx->error_state associated with thr is
 
412
!= DB_SUCCESS when we return. DB_LOCK_WAIT_TIMEOUT and DB_DEADLOCK
 
413
are possible errors. DB_DEADLOCK is returned if selective deadlock
 
414
resolution chose this transaction as a victim. */
 
415
 
 
416
void
 
417
srv_suspend_mysql_thread(
 
418
/*=====================*/
 
419
        que_thr_t*      thr);   /* in: query thread associated with the MySQL
 
420
                                OS thread */
 
421
/************************************************************************
 
422
Releases a MySQL OS thread waiting for a lock to be released, if the
 
423
thread is already suspended. */
 
424
 
 
425
void
 
426
srv_release_mysql_thread_if_suspended(
 
427
/*==================================*/
 
428
        que_thr_t*      thr);   /* in: query thread associated with the
 
429
                                MySQL OS thread  */
 
430
/*************************************************************************
 
431
A thread which wakes up threads whose lock wait may have lasted too
 
432
long. */
 
433
 
 
434
os_thread_ret_t
 
435
srv_lock_timeout_thread(
 
436
/*====================*/
 
437
                        /* out: a dummy parameter */
 
438
        void*   arg);   /* in: a dummy parameter required by
 
439
                        os_thread_create */
 
440
/*************************************************************************
 
441
A thread which prints the info output by various InnoDB monitors. */
 
442
 
 
443
os_thread_ret_t
 
444
srv_monitor_thread(
 
445
/*===============*/
 
446
                        /* out: a dummy parameter */
 
447
        void*   arg);   /* in: a dummy parameter required by
 
448
                        os_thread_create */
 
449
/*************************************************************************
 
450
A thread which prints warnings about semaphore waits which have lasted
 
451
too long. These can be used to track bugs which cause hangs. */
 
452
 
 
453
os_thread_ret_t
 
454
srv_error_monitor_thread(
 
455
/*=====================*/
 
456
                        /* out: a dummy parameter */
 
457
        void*   arg);   /* in: a dummy parameter required by
 
458
                        os_thread_create */
 
459
/**********************************************************************
 
460
Outputs to a file the output of the InnoDB Monitor. */
 
461
 
 
462
ibool
 
463
srv_printf_innodb_monitor(
 
464
/*======================*/
 
465
                                /* out: FALSE if not all information printed
 
466
                                due to failure to obtain necessary mutex */
 
467
        FILE*   file,           /* in: output stream */
 
468
        ibool   nowait,         /* in: whether to wait for kernel
 
469
                                mutex. */
 
470
        ulint*  trx_start,      /* out: file position of the start of
 
471
                                the list of active transactions */
 
472
        ulint*  trx_end);       /* out: file position of the end of
 
473
                                the list of active transactions */
 
474
 
 
475
/**********************************************************************
 
476
Function to pass InnoDB status variables to MySQL */
 
477
 
 
478
void
 
479
srv_export_innodb_status(void);
 
480
/*=====================*/
 
481
 
 
482
/* Types for the threads existing in the system. Threads of types 4 - 9
 
483
are called utility threads. Note that utility threads are mainly disk
 
484
bound, except that version threads 6 - 7 may also be CPU bound, if
 
485
cleaning versions from the buffer pool. */
 
486
 
 
487
#define SRV_COM         1       /* threads serving communication and queries */
 
488
#define SRV_CONSOLE     2       /* thread serving console */
 
489
#define SRV_WORKER      3       /* threads serving parallelized queries and
 
490
                                queries released from lock wait */
 
491
#define SRV_BUFFER      4       /* thread flushing dirty buffer blocks,
 
492
                                not currently in use */
 
493
#define SRV_RECOVERY    5       /* threads finishing a recovery,
 
494
                                not currently in use */
 
495
#define SRV_INSERT      6       /* thread flushing the insert buffer to disk,
 
496
                                not currently in use */
 
497
#define SRV_MASTER      7       /* the master thread, (whose type number must
 
498
                                be biggest) */
 
499
 
 
500
/* Thread slot in the thread table */
 
501
typedef struct srv_slot_struct  srv_slot_t;
 
502
 
 
503
/* Thread table is an array of slots */
 
504
typedef srv_slot_t      srv_table_t;
 
505
 
 
506
/* In this structure we store status variables to be passed to MySQL */
 
507
struct export_var_struct{
 
508
        ulint innodb_data_pending_reads;
 
509
        ulint innodb_data_pending_writes;
 
510
        ulint innodb_data_pending_fsyncs;
 
511
        ulint innodb_data_fsyncs;
 
512
        ulint innodb_data_read;
 
513
        ulint innodb_data_writes;
 
514
        ulint innodb_data_written;
 
515
        ulint innodb_data_reads;
 
516
        ulint innodb_buffer_pool_pages_total;
 
517
        ulint innodb_buffer_pool_pages_data;
 
518
        ulint innodb_buffer_pool_pages_dirty;
 
519
        ulint innodb_buffer_pool_pages_misc;
 
520
        ulint innodb_buffer_pool_pages_free;
 
521
#ifdef UNIV_DEBUG
 
522
        ulint innodb_buffer_pool_pages_latched;
 
523
#endif /* UNIV_DEBUG */
 
524
        ulint innodb_buffer_pool_read_requests;
 
525
        ulint innodb_buffer_pool_reads;
 
526
        ulint innodb_buffer_pool_wait_free;
 
527
        ulint innodb_buffer_pool_pages_flushed;
 
528
        ulint innodb_buffer_pool_write_requests;
 
529
        ulint innodb_buffer_pool_read_ahead_seq;
 
530
        ulint innodb_buffer_pool_read_ahead_rnd;
 
531
        ulint innodb_dblwr_pages_written;
 
532
        ulint innodb_dblwr_writes;
 
533
        ulint innodb_log_waits;
 
534
        ulint innodb_log_write_requests;
 
535
        ulint innodb_log_writes;
 
536
        ulint innodb_os_log_written;
 
537
        ulint innodb_os_log_fsyncs;
 
538
        ulint innodb_os_log_pending_writes;
 
539
        ulint innodb_os_log_pending_fsyncs;
 
540
        ulint innodb_page_size;
 
541
        ulint innodb_pages_created;
 
542
        ulint innodb_pages_read;
 
543
        ulint innodb_pages_written;
 
544
        ulint innodb_row_lock_waits;
 
545
        ulint innodb_row_lock_current_waits;
 
546
        ib_longlong innodb_row_lock_time;
 
547
        ulint innodb_row_lock_time_avg;
 
548
        ulint innodb_row_lock_time_max;
 
549
        ulint innodb_rows_read;
 
550
        ulint innodb_rows_inserted;
 
551
        ulint innodb_rows_updated;
 
552
        ulint innodb_rows_deleted;
 
553
};
 
554
 
 
555
/* The server system struct */
 
556
struct srv_sys_struct{
 
557
        srv_table_t*    threads;        /* server thread table */
 
558
        UT_LIST_BASE_NODE_T(que_thr_t)
 
559
                        tasks;          /* task queue */
 
560
        dict_index_t*   dummy_ind1;     /* dummy index for old-style
 
561
                                        supremum and infimum records */
 
562
        dict_index_t*   dummy_ind2;     /* dummy index for new-style
 
563
                                        supremum and infimum records */
 
564
};
 
565
 
 
566
extern ulint    srv_n_threads_active[];
 
567
 
 
568
#endif
 
569