mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Bug#14575
¨MySQL server crashes if you try to access to InnoDB table¨ crash caused by schizophrenic mysqld - 2 memory locations for logically same function with conflicting values. Fixed by backporting from 5.1 changes to have_xyz_db declarations.
This commit is contained in:
@@ -1243,11 +1243,56 @@ extern const LEX_STRING view_type;
|
||||
|
||||
/* optional things, have_* variables */
|
||||
|
||||
extern SHOW_COMP_OPTION have_isam, have_innodb, have_berkeley_db;
|
||||
extern SHOW_COMP_OPTION have_example_db, have_archive_db, have_csv_db;
|
||||
#ifdef HAVE_INNOBASE_DB
|
||||
extern handlerton innobase_hton;
|
||||
#define have_innodb innobase_hton.state
|
||||
#else
|
||||
extern SHOW_COMP_OPTION have_innodb;
|
||||
#endif
|
||||
#ifdef HAVE_BERKELEY_DB
|
||||
extern handlerton berkeley_hton;
|
||||
#define have_berkeley_db berkeley_hton.state
|
||||
#else
|
||||
extern SHOW_COMP_OPTION have_berkeley_db;
|
||||
#endif
|
||||
#ifdef HAVE_EXAMPLE_DB
|
||||
extern handlerton example_hton;
|
||||
#define have_example_db example_hton.state
|
||||
#else
|
||||
extern SHOW_COMP_OPTION have_example_db;
|
||||
#endif
|
||||
#ifdef HAVE_ARCHIVE_DB
|
||||
extern handlerton archive_hton;
|
||||
#define have_archive_db archive_hton.state
|
||||
#else
|
||||
extern SHOW_COMP_OPTION have_archive_db;
|
||||
#endif
|
||||
#ifdef HAVE_CSV_DB
|
||||
extern handlerton tina_hton;
|
||||
#define have_csv_db tina_hton.state
|
||||
#else
|
||||
extern SHOW_COMP_OPTION have_csv_db;
|
||||
#endif
|
||||
#ifdef HAVE_FEDERATED_DB
|
||||
extern handlerton federated_hton;
|
||||
#define have_federated_db federated_hton.state
|
||||
#else
|
||||
extern SHOW_COMP_OPTION have_federated_db;
|
||||
#endif
|
||||
#ifdef HAVE_BLACKHOLE_DB
|
||||
extern handlerton blackhole_hton;
|
||||
#define have_blackhole_db blackhole_hton.state
|
||||
#else
|
||||
extern SHOW_COMP_OPTION have_blackhole_db;
|
||||
#endif
|
||||
#ifdef HAVE_NDBCLUSTER_DB
|
||||
extern handlerton ndbcluster_hton;
|
||||
#define have_ndbcluster ndbcluster_hton.state
|
||||
#else
|
||||
extern SHOW_COMP_OPTION have_ndbcluster;
|
||||
#endif
|
||||
|
||||
extern SHOW_COMP_OPTION have_isam;
|
||||
extern SHOW_COMP_OPTION have_raid, have_openssl, have_symlink;
|
||||
extern SHOW_COMP_OPTION have_query_cache;
|
||||
extern SHOW_COMP_OPTION have_geometry, have_rtree_keys;
|
||||
|
||||
@@ -472,13 +472,10 @@ CHARSET_INFO *system_charset_info, *files_charset_info ;
|
||||
CHARSET_INFO *national_charset_info, *table_alias_charset;
|
||||
CHARSET_INFO *character_set_filesystem;
|
||||
|
||||
SHOW_COMP_OPTION have_berkeley_db, have_innodb, have_isam, have_ndbcluster,
|
||||
have_example_db, have_archive_db, have_csv_db;
|
||||
SHOW_COMP_OPTION have_federated_db;
|
||||
SHOW_COMP_OPTION have_isam;
|
||||
SHOW_COMP_OPTION have_raid, have_openssl, have_symlink, have_query_cache;
|
||||
SHOW_COMP_OPTION have_geometry, have_rtree_keys;
|
||||
SHOW_COMP_OPTION have_crypt, have_compress;
|
||||
SHOW_COMP_OPTION have_blackhole_db;
|
||||
|
||||
/* Thread specific variables */
|
||||
|
||||
@@ -7396,6 +7393,30 @@ static void create_pid_file()
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
Instantiate have_xyx for missing storage engines
|
||||
*****************************************************************************/
|
||||
#undef have_berkeley_db
|
||||
#undef have_innodb
|
||||
#undef have_ndbcluster
|
||||
#undef have_example_db
|
||||
#undef have_archive_db
|
||||
#undef have_csv_db
|
||||
#undef have_federated_db
|
||||
#undef have_partition_db
|
||||
#undef have_blackhole_db
|
||||
|
||||
SHOW_COMP_OPTION have_berkeley_db= SHOW_OPTION_NO;
|
||||
SHOW_COMP_OPTION have_innodb= SHOW_OPTION_NO;
|
||||
SHOW_COMP_OPTION have_ndbcluster= SHOW_OPTION_NO;
|
||||
SHOW_COMP_OPTION have_example_db= SHOW_OPTION_NO;
|
||||
SHOW_COMP_OPTION have_archive_db= SHOW_OPTION_NO;
|
||||
SHOW_COMP_OPTION have_csv_db= SHOW_OPTION_NO;
|
||||
SHOW_COMP_OPTION have_federated_db= SHOW_OPTION_NO;
|
||||
SHOW_COMP_OPTION have_partition_db= SHOW_OPTION_NO;
|
||||
SHOW_COMP_OPTION have_blackhole_db= SHOW_OPTION_NO;
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
Instantiate templates
|
||||
*****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user