Cleanup for handlerton structure to allow for loadable engine work. This is the first in a series of patches.

sql/examples/ha_archive.cc:
  Now declared externally.
sql/examples/ha_example.cc:
  Now declared externally
sql/examples/ha_tina.cc:
  Now declared externally
sql/ha_berkeley.cc:
  Now declared externally
sql/ha_blackhole.cc:
  Now declared externally
sql/ha_federated.cc:
  Now declared externally.
sql/ha_heap.cc:
  Now declared externally.
sql/ha_innodb.cc:
  Now declared externally.
sql/ha_myisam.cc:
  Now declared externally
sql/ha_myisammrg.cc:
  Now declared externally.
sql/ha_ndbcluster.cc:
  Now declared externally.
sql/handler.cc:
  Changes for eventual loadable engines. This will allow us to gain faster access to the handlerton (eventually this will just be a handlteron array).
sql/handler.h:
  New alias structure and change to show_table_st to place handlerton in the structure.
This commit is contained in:
unknown 2005-09-19 12:06:23 -07:00
commit fa8fcecb8e
13 changed files with 222 additions and 99 deletions

View file

@ -136,7 +136,7 @@ static HASH archive_open_tables;
#define ARCHIVE_CHECK_HEADER 254 // The number we use to determine corruption
/* dummy handlerton - only to have something to return from archive_db_init */
static handlerton archive_hton = {
handlerton archive_hton = {
"archive",
0, /* slot */
0, /* savepoint size. */

View file

@ -73,7 +73,7 @@
#include "ha_example.h"
static handlerton example_hton= {
handlerton example_hton= {
"CSV",
0, /* slot */
0, /* savepoint size. */

View file

@ -54,7 +54,7 @@ pthread_mutex_t tina_mutex;
static HASH tina_open_tables;
static int tina_init= 0;
static handlerton tina_hton= {
handlerton tina_hton= {
"CSV",
0, /* slot */
0, /* savepoint size. */