~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Barry.Leslie at PrimeBase
  • Date: 2011-01-22 03:22:44 UTC
  • mfrom: (2101 staging)
  • mto: (2228.1.4 build)
  • mto: This revision was merged to the branch mainline in revision 2230.
  • Revision ID: barry.leslie@primebase.com-20110122032244-ukbe3mlj7fs8xph6
Merged with lp:drizzle.

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
 
51
53
extern const char*      srv_main_thread_op_info;
52
54
 
53
55
/** Prefix used by MySQL to indicate pre-5.1 table name encoding */
54
 
extern const char       srv_mysql50_table_name_prefix[9];
 
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#");
55
60
 
56
61
/* When this event is set the lock timeout and InnoDB monitor
57
62
thread starts running */
58
63
extern os_event_t       srv_lock_timeout_thread_event;
59
64
 
 
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
 
60
74
/* If the last data file is auto-extended, we add this many pages to it
61
75
at a time */
62
76
#define SRV_AUTO_EXTEND_INCREMENT       \
230
244
extern ulong    srv_spin_wait_delay;
231
245
extern ibool    srv_priority_boost;
232
246
 
 
247
extern ulint    srv_truncated_status_writes;
233
248
 
234
249
#ifdef UNIV_DEBUG
235
250
extern  ibool   srv_print_thread_releases;
647
662
os_thread_ret_t
648
663
srv_purge_thread(
649
664
/*=============*/
650
 
        void*   arg __attribute__((unused))); /*!< in: a dummy parameter
 
665
        void*   /*arg __attribute__((unused))*/); /*!< in: a dummy parameter
651
666
                                              required by os_thread_create */
652
667
 
653
668
/**********************************************************************//**
719
734
        ulint innodb_rows_inserted;             /*!< srv_n_rows_inserted */
720
735
        ulint innodb_rows_updated;              /*!< srv_n_rows_updated */
721
736
        ulint innodb_rows_deleted;              /*!< srv_n_rows_deleted */
 
737
        ulint innodb_truncated_status_writes;   /*!< srv_truncated_status_writes */
722
738
};
723
739
 
724
740
/** Thread slot in the thread table */
725
741
typedef struct srv_slot_struct  srv_slot_t;
726
 
  
 
742
 
727
743
/** Thread table is an array of slots */
728
744
typedef srv_slot_t      srv_table_t;
729
745