Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f1d49211
Commit
f1d49211
authored
May 02, 2006
by
acurtis@xiphis.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WL#3201 additional post-review fixes
parent
09c7374d
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
100 additions
and
58 deletions
+100
-58
config/ac-macros/plugins.m4
config/ac-macros/plugins.m4
+4
-4
configure.in
configure.in
+1
-1
include/mysql/plugin.h
include/mysql/plugin.h
+5
-5
sql/ha_berkeley.cc
sql/ha_berkeley.cc
+9
-5
sql/ha_federated.cc
sql/ha_federated.cc
+7
-4
sql/ha_heap.cc
sql/ha_heap.cc
+9
-5
sql/ha_innodb.cc
sql/ha_innodb.cc
+8
-4
sql/ha_myisam.cc
sql/ha_myisam.cc
+8
-4
sql/ha_myisammrg.cc
sql/ha_myisammrg.cc
+8
-4
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+5
-2
sql/ha_partition.cc
sql/ha_partition.cc
+7
-4
storage/archive/ha_archive.cc
storage/archive/ha_archive.cc
+7
-4
storage/blackhole/ha_blackhole.cc
storage/blackhole/ha_blackhole.cc
+8
-4
storage/csv/ha_tina.cc
storage/csv/ha_tina.cc
+7
-4
storage/example/ha_example.cc
storage/example/ha_example.cc
+7
-4
No files found.
config/ac-macros/plugins.m4
View file @
f1d49211
...
...
@@ -38,9 +38,7 @@ AC_DEFUN([_MYSQL_PLUGIN],[
_MYSQL_PLUGAPPEND([__mysql_plugin_list__],[$1])
m4_define([MYSQL_PLUGIN_NAME_]AS_TR_CPP([$1]), [$3])
m4_define([MYSQL_PLUGIN_DESC_]AS_TR_CPP([$1]), [$4])
ifelse([$5], [], [], [
_MYSQL_PLUGAPPEND_META([$1], $5)
])
_MYSQL_PLUGAPPEND_META([$1], $5)
])
])
...
...
@@ -351,11 +349,13 @@ AC_DEFUN([__MYSQL_EMIT_CHECK_PLUGIN],[
else
m4_ifdef([$7],[
ifelse(m4_bregexp($7, [^lib[^.]+\.a$]), -2, [
dnl change above "-2" to "0" to enable this section
dnl Although this is "pretty", it breaks libmysqld build
m4_ifdef([$6],[
mysql_use_plugin_dir="$6"
mysql_plugin_libs="$mysql_plugin_libs -L[\$(top_builddir)]/$6"
])
mysql_plugin_libs="$mysql_plugin_libs
mysql_plugin_libs="$mysql_plugin_libs
dnl
[-l]m4_bregexp($7, [^lib\([^.]+\)], [\1])"
], m4_bregexp($7, [^\\\$]), 0, [
m4_ifdef([$6],[
...
...
configure.in
View file @
f1d49211
...
...
@@ -91,7 +91,7 @@ MYSQL_PLUGIN_DIRECTORY(ftexample, [plugin/fulltext])
MYSQL_PLUGIN_DYNAMIC
(
ftexample,
[
mypluglib.la]
)
MYSQL_STORAGE_ENGINE
(
heap,no,
[
Memory Storage Engine],
[
In memory hash
ed tables]
)
[
Volatile memory bas
ed tables]
)
MYSQL_PLUGIN_DIRECTORY
(
heap,
[
storage/heap]
)
MYSQL_PLUGIN_STATIC
(
heap,
[
libheap.a]
)
MYSQL_PLUGIN_MANDATORY
(
heap
)
dnl Memory tables
...
...
include/mysql/plugin.h
View file @
f1d49211
...
...
@@ -39,23 +39,23 @@
#ifndef MYSQL_DYNAMIC_PLUGIN
#define __
DECLARE_PLUGIN(NAME, VERSION, PSIZE, DECLS)
\
#define __
MYSQL_DECLARE_PLUGIN(NAME, VERSION, PSIZE, DECLS)
\
int VERSION= MYSQL_PLUGIN_INTERFACE_VERSION; \
int PSIZE= sizeof(struct st_mysql_plugin); \
struct st_mysql_plugin DECLS[]= {
#else
#define __
DECLARE_PLUGIN(NAME, VERSION, PSIZE, DECLS)
\
#define __
MYSQL_DECLARE_PLUGIN(NAME, VERSION, PSIZE, DECLS)
\
int _mysql_plugin_interface_version_= MYSQL_PLUGIN_INTERFACE_VERSION; \
int _mysql_sizeof_struct_st_plugin_= sizeof(struct st_mysql_plugin); \
struct st_mysql_plugin _mysql_plugin_declarations_[]= {
#endif
#define _DECLARE_PLUGIN(NAME) \
__DECLARE_PLUGIN(NAME, builtin_ ## NAME ## _plugin_interface_version, \
#define mysql_declare_plugin(NAME) \
__MYSQL_DECLARE_PLUGIN(NAME, \
builtin_ ## NAME ## _plugin_interface_version, \
builtin_ ## NAME ## _sizeof_struct_st_plugin, \
builtin_ ## NAME ## _plugin)
#define mysql_declare_plugin(NAME) _DECLARE_PLUGIN(NAME)
#define mysql_declare_plugin_end ,{0,0,0,0,0,0,0,0,0}}
/*
...
...
sql/ha_berkeley.cc
View file @
f1d49211
...
...
@@ -125,11 +125,15 @@ static int berkeley_savepoint(THD* thd, void *savepoint);
static
int
berkeley_release_savepoint
(
THD
*
thd
,
void
*
savepoint
);
static
handler
*
berkeley_create_handler
(
TABLE_SHARE
*
table
);
static
const
char
berkeley_hton_name
[]
=
"BerkeleyDB"
;
static
const
char
berkeley_hton_comment
[]
=
"Supports transactions and page-level locking"
;
handlerton
berkeley_hton
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
,
"BerkeleyDB"
,
berkeley_hton_name
,
SHOW_OPTION_YES
,
"Supports transactions and page-level locking"
,
berkeley_hton_comment
,
DB_TYPE_BERKELEY_DB
,
berkeley_init
,
0
,
/* slot */
...
...
@@ -2733,9 +2737,9 @@ mysql_declare_plugin(berkeley)
{
MYSQL_STORAGE_ENGINE_PLUGIN
,
&
berkeley_hton
,
berkeley_hton
.
name
,
"
MySQL AB
"
,
"BerkeleyDB Storage Engine"
,
berkeley_hton
_
name
,
"
Sleepycat Software
"
,
berkeley_hton_comment
,
NULL
,
/* Plugin Init */
NULL
,
/* Plugin Deinit */
0x0100
/* 1.0 */
,
...
...
sql/ha_federated.cc
View file @
f1d49211
...
...
@@ -370,11 +370,14 @@ static int federated_rollback(THD *thd, bool all);
/* Federated storage engine handlerton */
static
const
char
federated_hton_name
[]
=
"FEDERATED"
;
static
const
char
federated_hton_comment
[]
=
"Federated MySQL storage engine"
;
handlerton
federated_hton
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
,
"FEDERATED"
,
federated_hton_name
,
SHOW_OPTION_YES
,
"Federated MySQL storage engine"
,
federated_hton_comment
,
DB_TYPE_FEDERATED_DB
,
federated_db_init
,
0
,
/* slot */
...
...
@@ -2813,9 +2816,9 @@ mysql_declare_plugin(federated)
{
MYSQL_STORAGE_ENGINE_PLUGIN
,
&
federated_hton
,
federated_hton
.
name
,
federated_hton
_
name
,
"Patrick Galbraith and Brian Aker, MySQL AB"
,
"Federated Storage Engine"
,
federated_hton_comment
,
NULL
,
/* Plugin Init */
NULL
,
/* Plugin Deinit */
0x0100
/* 1.0 */
,
...
...
sql/ha_heap.cc
View file @
f1d49211
...
...
@@ -26,11 +26,15 @@
static
handler
*
heap_create_handler
(
TABLE_SHARE
*
table
);
static
const
char
heap_hton_name
[]
=
"MEMORY"
;
static
const
char
heap_hton_comment
[]
=
"Hash based, stored in memory, useful for temporary tables"
;
handlerton
heap_hton
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
,
"MEMORY"
,
heap_hton_name
,
SHOW_OPTION_YES
,
"Hash based, stored in memory, useful for temporary tables"
,
heap_hton_comment
,
DB_TYPE_HEAP
,
NULL
,
0
,
/* slot */
...
...
@@ -711,9 +715,9 @@ mysql_declare_plugin(heap)
{
MYSQL_STORAGE_ENGINE_PLUGIN
,
&
heap_hton
,
heap_hton
.
name
,
NULL
,
heap_hton
.
comment
,
heap_hton
_
name
,
"MySQL AB"
,
heap_hton
_
comment
,
NULL
,
NULL
,
0
...
...
sql/ha_innodb.cc
View file @
f1d49211
...
...
@@ -205,11 +205,15 @@ static int innobase_savepoint(THD* thd, void *savepoint);
static
int
innobase_release_savepoint
(
THD
*
thd
,
void
*
savepoint
);
static
handler
*
innobase_create_handler
(
TABLE_SHARE
*
table
);
static
const
char
innobase_hton_name
[]
=
"InnoDB"
;
static
const
char
innobase_hton_comment
[]
=
"Supports transactions, row-level locking, and foreign keys"
;
handlerton
innobase_hton
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
,
"InnoDB"
,
innobase_hton_name
,
SHOW_OPTION_YES
,
"Supports transactions, row-level locking, and foreign keys"
,
innobase_hton_comment
,
DB_TYPE_INNODB
,
innobase_init
,
0
,
/* slot */
...
...
@@ -7439,9 +7443,9 @@ mysql_declare_plugin(innobase)
{
MYSQL_STORAGE_ENGINE_PLUGIN
,
&
innobase_hton
,
innobase_hton
.
name
,
innobase_hton
_
name
,
"Innobase OY"
,
"InnoDB Storage Engine"
,
innobase_hton_comment
,
NULL
,
/* Plugin Init */
NULL
,
/* Plugin Deinit */
0x0100
/* 1.0 */
,
...
...
sql/ha_myisam.cc
View file @
f1d49211
...
...
@@ -56,11 +56,15 @@ static handler *myisam_create_handler(TABLE_SHARE *table);
/* MyISAM handlerton */
static
const
char
myisam_hton_name
[]
=
"MyISAM"
;
static
const
char
myisam_hton_comment
[]
=
"Default engine as of MySQL 3.23 with great performance"
;
handlerton
myisam_hton
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
,
"MyISAM"
,
myisam_hton_name
,
SHOW_OPTION_YES
,
"Default engine as of MySQL 3.23 with great performance"
,
myisam_hton_comment
,
DB_TYPE_MYISAM
,
NULL
,
0
,
/* slot */
...
...
@@ -1795,9 +1799,9 @@ mysql_declare_plugin(myisam)
{
MYSQL_STORAGE_ENGINE_PLUGIN
,
&
myisam_hton
,
myisam_hton
.
name
,
myisam_hton
_
name
,
"MySQL AB"
,
"MyISAM Storage Engine"
,
myisam_hton_comment
,
NULL
,
/* Plugin Init */
NULL
,
/* Plugin Deinit */
0x0100
/* 1.0 */
,
...
...
sql/ha_myisammrg.cc
View file @
f1d49211
...
...
@@ -38,11 +38,15 @@ static handler *myisammrg_create_handler(TABLE_SHARE *table);
/* MyISAM MERGE handlerton */
static
const
char
myisammrg_hton_name
[]
=
"MRG_MYISAM"
;
static
const
char
myisammrg_hton_comment
[]
=
"Collection of identical MyISAM tables"
;
handlerton
myisammrg_hton
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
,
"MRG_MYISAM"
,
myisammrg_hton_name
,
SHOW_OPTION_YES
,
"Collection of identical MyISAM tables"
,
myisammrg_hton_comment
,
DB_TYPE_MRG_MYISAM
,
NULL
,
0
,
/* slot */
...
...
@@ -580,9 +584,9 @@ mysql_declare_plugin(myisammrg)
{
MYSQL_STORAGE_ENGINE_PLUGIN
,
&
myisammrg_hton
,
myisammrg_hton
.
name
,
myisammrg_hton
_
name
,
"MySQL AB"
,
"MyISAMMRG Storage Engine"
,
myisammrg_hton_comment
,
NULL
,
/* Plugin Init */
NULL
,
/* Plugin Deinit */
0x0100
/* 1.0 */
,
...
...
sql/ha_ndbcluster.cc
View file @
f1d49211
...
...
@@ -69,6 +69,9 @@ static bool ndbcluster_show_status(THD*,stat_print_fn *,enum ha_stat_type);
static
int
ndbcluster_alter_tablespace
(
THD
*
thd
,
st_alter_tablespace
*
info
);
static
int
ndbcluster_fill_files_table
(
THD
*
thd
,
TABLE_LIST
*
tables
,
COND
*
cond
);
static
const
char
ndbcluster_hton_name
[]
=
"ndbcluster"
;
static
const
char
ndbcluster_hton_comment
[]
=
"Clustered, fault-tolerant tables"
;
handlerton
ndbcluster_hton
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
,
"ndbcluster"
,
...
...
@@ -10287,9 +10290,9 @@ mysql_declare_plugin(ndbcluster)
{
MYSQL_STORAGE_ENGINE_PLUGIN
,
&
ndbcluster_hton
,
ndbcluster_hton
.
name
,
ndbcluster_hton
_
name
,
"MySQL AB"
,
"NDB Storage Engine"
,
ndbcluster_hton_comment
,
NULL
,
/* Plugin Init */
NULL
,
/* Plugin Deinit */
0x0100
/* 1.0 */
,
...
...
sql/ha_partition.cc
View file @
f1d49211
...
...
@@ -73,11 +73,14 @@ static handler *partition_create_handler(TABLE_SHARE *share);
static
uint
partition_flags
();
static
uint
alter_table_flags
(
uint
flags
);
static
const
char
partition_hton_name
[]
=
"partition"
;
static
const
char
partition_hton_comment
[]
=
"Partition Storage Engine Helper"
;
handlerton
partition_hton
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
,
"partition"
,
partition_hton_name
,
SHOW_OPTION_YES
,
"Partition Storage Engine Helper"
,
/* A comment used by SHOW to describe an engine */
partition_hton_comment
,
/* A comment used by SHOW to describe an engine */
DB_TYPE_PARTITION_DB
,
0
,
/* Method that initializes a storage engine */
0
,
/* slot */
...
...
@@ -5447,9 +5450,9 @@ mysql_declare_plugin(partition)
{
MYSQL_STORAGE_ENGINE_PLUGIN
,
&
partition_hton
,
partition_hton
.
name
,
partition_hton
_
name
,
"Mikael Ronstrom, MySQL AB"
,
"Partitioning Support"
,
partition_hton_comment
,
NULL
,
/* Plugin Init */
NULL
,
/* Plugin Deinit */
0x0100
/* 1.0 */
,
...
...
storage/archive/ha_archive.cc
View file @
f1d49211
...
...
@@ -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 */
,
...
...
storage/blackhole/ha_blackhole.cc
View file @
f1d49211
...
...
@@ -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 */
,
...
...
storage/csv/ha_tina.cc
View file @
f1d49211
...
...
@@ -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 */
,
...
...
storage/example/ha_example.cc
View file @
f1d49211
...
...
@@ -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 */
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment