~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-28 17:42:52 UTC
  • mfrom: (2023.3.32 innodb-cxx)
  • Revision ID: kalebral@gmail.com-20101228174252-fy2isiqdaphf2gl3
Merge Monty, move innobase from C to C++

Show diffs side-by-side

added added

removed removed

Lines of Context:
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 */
657
662
os_thread_ret_t
658
663
srv_purge_thread(
659
664
/*=============*/
660
 
        void*   arg __attribute__((unused))); /*!< in: a dummy parameter
 
665
        void*   /*arg __attribute__((unused))*/); /*!< in: a dummy parameter
661
666
                                              required by os_thread_create */
662
667
 
663
668
/**********************************************************************//**