diff options
author | acurtis@xiphis.org <> | 2006-05-02 04:11:00 -0700 |
---|---|---|
committer | acurtis@xiphis.org <> | 2006-05-02 04:11:00 -0700 |
commit | f1d4921139a353c0f99751c6bfd710b81e074929 (patch) | |
tree | 5d9330a6ecd663b4caf7da376b8a6372a8edeac7 /storage | |
parent | 09c7374d6941463ed40a7589aff6024f9e0db4e4 (diff) | |
download | mariadb-git-f1d4921139a353c0f99751c6bfd710b81e074929.tar.gz |
WL#3201 additional post-review fixes
Diffstat (limited to 'storage')
-rw-r--r-- | storage/archive/ha_archive.cc | 11 | ||||
-rw-r--r-- | storage/blackhole/ha_blackhole.cc | 12 | ||||
-rw-r--r-- | storage/csv/ha_tina.cc | 11 | ||||
-rw-r--r-- | storage/example/ha_example.cc | 11 |
4 files changed, 29 insertions, 16 deletions
diff --git a/storage/archive/ha_archive.cc b/storage/archive/ha_archive.cc index cd28deaea47..e39ee976eb1 100644 --- a/storage/archive/ha_archive.cc +++ b/storage/archive/ha_archive.cc @@ -146,12 +146,15 @@ static handler *archive_create_handler(TABLE_SHARE *table); #define ARCHIVE_MIN_ROWS_TO_USE_BULK_INSERT 2 +static const char archive_hton_name[]= "ARCHIVE"; +static const char archive_hton_comment[]= "Archive storage engine"; + /* dummy handlerton - only to have something to return from archive_db_init */ handlerton archive_hton = { MYSQL_HANDLERTON_INTERFACE_VERSION, - "ARCHIVE", + archive_hton_name, SHOW_OPTION_YES, - "Archive storage engine", + archive_hton_comment, DB_TYPE_ARCHIVE_DB, archive_db_init, 0, /* slot */ @@ -1577,9 +1580,9 @@ mysql_declare_plugin(archive) { MYSQL_STORAGE_ENGINE_PLUGIN, &archive_hton, - archive_hton.name, + archive_hton_name, "Brian Aker, MySQL AB", - "Archive Storage Engine", + archive_hton_comment, NULL, /* Plugin Init */ archive_db_done, /* Plugin Deinit */ 0x0100 /* 1.0 */, diff --git a/storage/blackhole/ha_blackhole.cc b/storage/blackhole/ha_blackhole.cc index 31d0b0c3917..e9fd1c2319d 100644 --- a/storage/blackhole/ha_blackhole.cc +++ b/storage/blackhole/ha_blackhole.cc @@ -29,13 +29,17 @@ static handler *blackhole_create_handler(TABLE_SHARE *table); +static const char blackhole_hton_name[]= "BLACKHOLE"; +static const char blackhole_hton_comment[]= + "/dev/null storage engine (anything you write to it disappears)"; + /* Blackhole storage engine handlerton */ handlerton blackhole_hton= { MYSQL_HANDLERTON_INTERFACE_VERSION, - "BLACKHOLE", + blackhole_hton_name, SHOW_OPTION_YES, - "/dev/null storage engine (anything you write to it disappears)", + blackhole_hton_comment, DB_TYPE_BLACKHOLE_DB, NULL, 0, /* slot */ @@ -256,9 +260,9 @@ mysql_declare_plugin(blackhole) { MYSQL_STORAGE_ENGINE_PLUGIN, &blackhole_hton, - blackhole_hton.name, + blackhole_hton_name, "MySQL AB", - "Blackhole Storage Engine", + blackhole_hton_comment, NULL, /* Plugin Init */ NULL, /* Plugin Deinit */ 0x0100 /* 1.0 */, diff --git a/storage/csv/ha_tina.cc b/storage/csv/ha_tina.cc index 8b1cfe71fa2..de69df90ed5 100644 --- a/storage/csv/ha_tina.cc +++ b/storage/csv/ha_tina.cc @@ -77,11 +77,14 @@ static int tina_init= 0; static handler *tina_create_handler(TABLE_SHARE *table); static int tina_init_func(); +static const char tina_hton_name[]= "CSV"; +static const char tina_hton_comment[]= "CSV storage engine"; + handlerton tina_hton= { MYSQL_HANDLERTON_INTERFACE_VERSION, - "CSV", + tina_hton_name, SHOW_OPTION_YES, - "CSV storage engine", + tina_hton_comment, DB_TYPE_CSV_DB, (bool (*)()) tina_init_func, 0, /* slot */ @@ -1403,9 +1406,9 @@ mysql_declare_plugin(csv) { MYSQL_STORAGE_ENGINE_PLUGIN, &tina_hton, - tina_hton.name, + tina_hton_name, "Brian Aker, MySQL AB", - "CSV Storage Engine", + tina_hton_comment, tina_init_func, /* Plugin Init */ tina_done_func, /* Plugin Deinit */ 0x0100 /* 1.0 */, diff --git a/storage/example/ha_example.cc b/storage/example/ha_example.cc index c723dcf648e..2ce543dfbb0 100644 --- a/storage/example/ha_example.cc +++ b/storage/example/ha_example.cc @@ -77,11 +77,14 @@ static int example_init_func(); static bool example_init_func_for_handlerton(); static int example_panic(enum ha_panic_function flag); +static const char example_hton_name[]= "EXAMPLE"; +static const char example_hton_comment[]= "Example storage engine"; + handlerton example_hton= { MYSQL_HANDLERTON_INTERFACE_VERSION, - "EXAMPLE", + example_hton_name, SHOW_OPTION_YES, - "Example storage engine", + example_hton_comment, DB_TYPE_EXAMPLE_DB, example_init_func_for_handlerton, 0, /* slot */ @@ -747,9 +750,9 @@ mysql_declare_plugin(example) { MYSQL_STORAGE_ENGINE_PLUGIN, &example_hton, - example_hton.name, + example_hton_name, "Brian Aker, MySQL AB", - "Example Storage Engine", + example_hton_comment, example_init_func, /* Plugin Init */ example_done_func, /* Plugin Deinit */ 0x0001 /* 0.1 */, |