diff options
author | unknown <brian@zim.(none)> | 2006-08-18 21:19:19 -0700 |
---|---|---|
committer | unknown <brian@zim.(none)> | 2006-08-18 21:19:19 -0700 |
commit | b470b3ab87743a13470098b8446da3fe2e100c9e (patch) | |
tree | 5e3642a4d6fe9f0bfc4b88394c8d2dae810fb30b | |
parent | bc4215111ca83b8535915c8b8d207fe105b4cb66 (diff) | |
download | mariadb-git-b470b3ab87743a13470098b8446da3fe2e100c9e.tar.gz |
Major changes are plug.in files created for almost all storage engines. A few stray BDB references removed.
storage/blackhole/plug.in:
BitKeeper file /home/brian/mysql/arch-5.1/storage/blackhole/plug.in
storage/heap/plug.in:
BitKeeper file /home/brian/mysql/arch-5.1/storage/heap/plug.in
storage/myisam/plug.in:
BitKeeper file /home/brian/mysql/arch-5.1/storage/myisam/plug.in
storage/myisammrg/plug.in:
BitKeeper file /home/brian/mysql/arch-5.1/storage/myisammrg/plug.in
storage/federated/ha_federated.h:
Rename: sql/ha_federated.h -> storage/federated/ha_federated.h
BUILD/FINISH.sh:
Stray BDB reference
BUILD/autorun.sh:
Stray bdb reference
BUILD/compile-alpha-cxx:
Stray bdb reference
BUILD/compile-alpha-debug:
Stray bdb reference
BUILD/compile-dist:
Stray BDB Reference
BUILD/compile-ia64-debug-max:
Stray BDB reference
configure.in:
All plugin code is now in plug.in files. Few tricky exceptions left.
sql/CMakeLists.txt:
Removed federated references
sql/Makefile.am:
Removed federated references
sql/mysql_priv.h:
stray bdb reference
storage/example/ha_example.cc:
Enabled all of mysql include
storage/federated/ha_federated.cc:
Added plugin defs
storage/csv/plug.in:
New BitKeeper file ``storage/csv/plug.in''
storage/federated/Makefile.am:
New BitKeeper file ``storage/federated/Makefile.am''
storage/federated/plug.in:
New BitKeeper file ``storage/federated/plug.in''
storage/innobase/plug.in:
New BitKeeper file ``storage/innobase/plug.in''
storage/ndb/plug.in:
New BitKeeper file ``storage/ndb/plug.in''
-rw-r--r-- | BUILD/FINISH.sh | 2 | ||||
-rwxr-xr-x | BUILD/autorun.sh | 1 | ||||
-rwxr-xr-x | BUILD/compile-alpha-cxx | 2 | ||||
-rwxr-xr-x | BUILD/compile-alpha-debug | 2 | ||||
-rwxr-xr-x | BUILD/compile-dist | 1 | ||||
-rwxr-xr-x | BUILD/compile-ia64-debug-max | 2 | ||||
-rw-r--r-- | configure.in | 50 | ||||
-rw-r--r-- | sql/CMakeLists.txt | 2 | ||||
-rw-r--r-- | sql/Makefile.am | 3 | ||||
-rw-r--r-- | sql/mysql_priv.h | 2 | ||||
-rw-r--r-- | storage/blackhole/plug.in | 6 | ||||
-rw-r--r-- | storage/csv/plug.in | 5 | ||||
-rw-r--r-- | storage/example/ha_example.cc | 1 | ||||
-rw-r--r-- | storage/federated/Makefile.am | 52 | ||||
-rw-r--r-- | storage/federated/ha_federated.cc (renamed from sql/ha_federated.cc) | 3 | ||||
-rw-r--r-- | storage/federated/ha_federated.h (renamed from sql/ha_federated.h) | 0 | ||||
-rw-r--r-- | storage/federated/plug.in | 4 | ||||
-rw-r--r-- | storage/heap/plug.in | 6 | ||||
-rw-r--r-- | storage/innobase/plug.in | 9 | ||||
-rw-r--r-- | storage/myisam/plug.in | 6 | ||||
-rw-r--r-- | storage/myisammrg/plug.in | 5 | ||||
-rw-r--r-- | storage/ndb/plug.in | 6 |
22 files changed, 109 insertions, 61 deletions
diff --git a/BUILD/FINISH.sh b/BUILD/FINISH.sh index a0e702515e6..51f6e909172 100644 --- a/BUILD/FINISH.sh +++ b/BUILD/FINISH.sh @@ -5,7 +5,7 @@ configure="./configure $base_configs $extra_configs" commands="\ $make -k distclean || true -/bin/rm -rf */.deps/*.P config.cache storage/innobase/config.cache storage/bdb/build_unix/config.cache bdb/dist/autom4te.cache autom4te.cache innobase/autom4te.cache; +/bin/rm -rf */.deps/*.P config.cache storage/innobase/config.cache autom4te.cache innobase/autom4te.cache; path=`dirname $0` . \"$path/autorun.sh\"" diff --git a/BUILD/autorun.sh b/BUILD/autorun.sh index 9ffe61b250a..337f43512fa 100755 --- a/BUILD/autorun.sh +++ b/BUILD/autorun.sh @@ -11,7 +11,6 @@ if [ -f /usr/bin/glibtoolize ] LIBTOOLIZE=libtoolize fi -(cd storage/bdb/dist && sh s_all) (cd storage/innobase && aclocal && autoheader && \ $LIBTOOLIZE --automake --force --copy && \ automake --force --add-missing --copy && autoconf) diff --git a/BUILD/compile-alpha-cxx b/BUILD/compile-alpha-cxx index 610d358ef82..1624f4ed622 100755 --- a/BUILD/compile-alpha-cxx +++ b/BUILD/compile-alpha-cxx @@ -1,7 +1,7 @@ /bin/rm -f */.deps/*.P */*.o make -k clean /bin/rm -f */.deps/*.P */*.o -/bin/rm -f */.deps/*.P config.cache storage/innobase/config.cache storage/bdb/build_unix/config.cache mysql-*.tar.gz +/bin/rm -f */.deps/*.P config.cache storage/innobase/config.cache mysql-*.tar.gz path=`dirname $0` . "$path/autorun.sh" diff --git a/BUILD/compile-alpha-debug b/BUILD/compile-alpha-debug index 8beffa65cb5..b565a18272f 100755 --- a/BUILD/compile-alpha-debug +++ b/BUILD/compile-alpha-debug @@ -1,7 +1,7 @@ /bin/rm -f */.deps/*.P */*.o make -k clean /bin/rm -f */.deps/*.P */*.o -/bin/rm -f */.deps/*.P config.cache storage/innobase/config.cache storage/bdb/build_unix/config.cache mysql-*.tar.gz +/bin/rm -f */.deps/*.P config.cache storage/innobase/config.cache mysql-*.tar.gz path=`dirname $0` . "$path/autorun.sh" diff --git a/BUILD/compile-dist b/BUILD/compile-dist index 874500977b7..0504b308ceb 100755 --- a/BUILD/compile-dist +++ b/BUILD/compile-dist @@ -7,7 +7,6 @@ # package" that is used as the basis for all other binary builds. # test -f Makefile && make distclean -(cd storage/bdb/dist && sh s_all) (cd storage/innobase && aclocal && autoheader && \ libtoolize --automake --force --copy && \ automake --force --add-missing --copy && autoconf) diff --git a/BUILD/compile-ia64-debug-max b/BUILD/compile-ia64-debug-max index d5f931c8d51..d1017ad506b 100755 --- a/BUILD/compile-ia64-debug-max +++ b/BUILD/compile-ia64-debug-max @@ -1,5 +1,5 @@ gmake -k clean || true -/bin/rm -f */.deps/*.P config.cache storage/innobase/config.cache storage/bdb/build_unix/config.cache +/bin/rm -f */.deps/*.P config.cache storage/innobase/config.cache path=`dirname $0` . "$path/autorun.sh" diff --git a/configure.in b/configure.in index 4b1141006b5..46d27beade3 100644 --- a/configure.in +++ b/configure.in @@ -2140,65 +2140,15 @@ MYSQL_CHECK_SSL # Has to be done late, as the plugin may need to check for existence of # functions tested above #-------------------------------------------------------------------- - -MYSQL_STORAGE_ENGINE(blackhole,,[Blackhole Storage Engine], - [Basic Write-only Read-never tables], [max,max-no-ndb]) -MYSQL_PLUGIN_DIRECTORY(blackhole, [storage/blackhole]) -MYSQL_PLUGIN_STATIC(blackhole, [libblackhole.a]) -MYSQL_PLUGIN_DYNAMIC(blackhole, [ha_blackhole.la]) - -MYSQL_STORAGE_ENGINE(csv,, [CSV Storage Engine], - [Stores tables in text CSV format]) -MYSQL_PLUGIN_DIRECTORY(csv, [storage/csv]) -MYSQL_PLUGIN_STATIC(csv, [libcsv.a]) -MYSQL_PLUGIN_MANDATORY(csv) dnl Used for logging - -MYSQL_STORAGE_ENGINE(federated,,[Federated Storage Engine], - [Connects to tables on remote MySQL servers], [max,max-no-ndb]) - MYSQL_PLUGIN(ftexample, [Simple Parser], [Simple full-text parser plugin]) MYSQL_PLUGIN_DIRECTORY(ftexample, [plugin/fulltext]) MYSQL_PLUGIN_DYNAMIC(ftexample, [mypluglib.la]) -MYSQL_STORAGE_ENGINE(heap,no, [Memory Storage Engine], - [Volatile memory based tables]) -MYSQL_PLUGIN_DIRECTORY(heap, [storage/heap]) -MYSQL_PLUGIN_STATIC(heap, [libheap.a]) -MYSQL_PLUGIN_MANDATORY(heap) dnl Memory tables - -MYSQL_STORAGE_ENGINE(innobase, innodb, [InnoDB Storage Engine], - [Transactional Tables using InnoDB], [max,max-no-ndb]) -MYSQL_PLUGIN_DIRECTORY(innobase, [storage/innobase]) -MYSQL_PLUGIN_STATIC(innobase, [libinnobase.a]) -MYSQL_PLUGIN_ACTIONS(innobase, [ - AC_CHECK_LIB(rt, aio_read, [innodb_system_libs="-lrt"]) - AC_SUBST(innodb_system_libs) -]) - -MYSQL_STORAGE_ENGINE(myisam,no, [MyISAM Storage Engine], - [Traditional non-transactional MySQL tables]) -MYSQL_PLUGIN_DIRECTORY(myisam, [storage/myisam]) -MYSQL_PLUGIN_STATIC(myisam, [libmyisam.a]) -MYSQL_PLUGIN_MANDATORY(myisam) dnl Default - -MYSQL_STORAGE_ENGINE(myisammrg,no,[MyISAM MERGE Engine], - [Merge multiple MySQL tables into one]) -MYSQL_PLUGIN_DIRECTORY(myisammrg,[storage/myisammrg]) -MYSQL_PLUGIN_STATIC(myisammrg, [libmyisammrg.a]) -MYSQL_PLUGIN_MANDATORY(myisammrg) - -MYSQL_STORAGE_ENGINE(ndbcluster, ndbcluster, [Cluster Storage Engine], - [High Availability Clustered tables], [max]) -MYSQL_PLUGIN_DIRECTORY(ndbcluster,[storage/ndb]) -MYSQL_PLUGIN_STATIC(ndbcluster, [[\$(ndbcluster_libs) \$(ndbcluster_system_libs) \$(NDB_SCI_LIBS)]]) -MYSQL_PLUGIN_ACTIONS(ndbcluster,[MYSQL_SETUP_NDBCLUSTER]) - MYSQL_STORAGE_ENGINE(partition, partition, [Partition Support], [MySQL Partitioning Support], [max,max-no-ndb]) dnl -- ndbcluster requires partition to be enabled -MYSQL_PLUGIN_DEPENDS(ndbcluster, [partition]) MYSQL_CONFIGURE_PLUGINS([none]) diff --git a/sql/CMakeLists.txt b/sql/CMakeLists.txt index 4d0c0cf3207..b1a1d6bd513 100644 --- a/sql/CMakeLists.txt +++ b/sql/CMakeLists.txt @@ -28,7 +28,7 @@ ADD_DEFINITIONS(-DHAVE_ROW_BASED_REPLICATION -DMYSQL_SERVER ADD_EXECUTABLE(mysqld ../sql-common/client.c derror.cc des_key_file.cc discover.cc ../libmysql/errmsg.c field.cc field_conv.cc filesort.cc gstream.cc ha_heap.cc ha_myisam.cc ha_myisammrg.cc - ha_innodb.cc ha_partition.cc ha_federated.cc + ha_innodb.cc ha_partition.cc handler.cc hash_filo.cc hash_filo.h hostname.cc init.cc item.cc item_buff.cc item_cmpfunc.cc item_create.cc item_func.cc item_geofunc.cc item_row.cc diff --git a/sql/Makefile.am b/sql/Makefile.am index 5c509707f51..1d3cca1f626 100644 --- a/sql/Makefile.am +++ b/sql/Makefile.am @@ -50,7 +50,7 @@ noinst_HEADERS = item.h item_func.h item_sum.h item_cmpfunc.h \ sql_map.h sql_string.h unireg.h \ sql_error.h field.h handler.h mysqld_suffix.h \ ha_heap.h ha_myisam.h ha_myisammrg.h ha_partition.h \ - ha_innodb.h ha_federated.h \ + ha_innodb.h \ ha_ndbcluster.h ha_ndbcluster_binlog.h \ ha_ndbcluster_tables.h \ opt_range.h protocol.h rpl_tblmap.h \ @@ -89,7 +89,6 @@ mysqld_SOURCES = sql_lex.cc sql_handler.cc sql_partition.cc \ records.cc filesort.cc handler.cc \ ha_heap.cc ha_myisam.cc ha_myisammrg.cc \ ha_partition.cc ha_innodb.cc \ - ha_federated.cc \ ha_ndbcluster.cc ha_ndbcluster_binlog.cc \ sql_db.cc sql_table.cc sql_rename.cc sql_crypt.cc \ sql_load.cc mf_iocache.cc field_conv.cc sql_show.cc \ diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h index 4910f66ff69..7de6f6d04e0 100644 --- a/sql/mysql_priv.h +++ b/sql/mysql_priv.h @@ -1378,8 +1378,6 @@ bool mysql_load(THD *thd, sql_exchange *ex, TABLE_LIST *table_list, int write_record(THD *thd, TABLE *table, COPY_INFO *info); /* sql_manager.cc */ -/* bits set in manager_status */ -#define MANAGER_BERKELEY_LOG_CLEANUP (1L << 0) extern ulong volatile manager_status; extern bool volatile manager_thread_in_use, mqh_used; extern pthread_t manager_thread; diff --git a/storage/blackhole/plug.in b/storage/blackhole/plug.in new file mode 100644 index 00000000000..725db0facba --- /dev/null +++ b/storage/blackhole/plug.in @@ -0,0 +1,6 @@ +MYSQL_STORAGE_ENGINE(blackhole,,[Blackhole Storage Engine], + [Basic Write-only Read-never tables], [max,max-no-ndb]) +MYSQL_PLUGIN_DIRECTORY(blackhole, [storage/blackhole]) +MYSQL_PLUGIN_STATIC(blackhole, [libblackhole.a]) +MYSQL_PLUGIN_DYNAMIC(blackhole, [ha_blackhole.la]) + diff --git a/storage/csv/plug.in b/storage/csv/plug.in new file mode 100644 index 00000000000..bbc69680fcd --- /dev/null +++ b/storage/csv/plug.in @@ -0,0 +1,5 @@ +MYSQL_STORAGE_ENGINE(csv,, [CSV Storage Engine], + [Stores tables in text CSV format]) +MYSQL_PLUGIN_DIRECTORY(csv, [storage/csv]) +MYSQL_PLUGIN_STATIC(csv, [libcsv.a]) +MYSQL_PLUGIN_MANDATORY(csv) dnl Used for logging diff --git a/storage/example/ha_example.cc b/storage/example/ha_example.cc index feabad2e356..704ea757749 100644 --- a/storage/example/ha_example.cc +++ b/storage/example/ha_example.cc @@ -67,6 +67,7 @@ #pragma implementation // gcc: Class implementation #endif +#define MYSQL_SERVER 1 #include "mysql_priv.h" #include "ha_example.h" diff --git a/storage/federated/Makefile.am b/storage/federated/Makefile.am new file mode 100644 index 00000000000..813455ed5c7 --- /dev/null +++ b/storage/federated/Makefile.am @@ -0,0 +1,52 @@ +# Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +#called from the top level Makefile + +MYSQLDATAdir = $(localstatedir) +MYSQLSHAREdir = $(pkgdatadir) +MYSQLBASEdir= $(prefix) +MYSQLLIBdir= $(pkglibdir) +INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include \ + -I$(top_srcdir)/regex \ + -I$(top_srcdir)/sql \ + -I$(srcdir) +WRAPLIBS= + +LDADD = + +DEFS = @DEFS@ + +noinst_HEADERS = ha_federated.h + +EXTRA_LTLIBRARIES = ha_federated.la +pkglib_LTLIBRARIES = @plugin_federated_shared_target@ +ha_federated_la_LDFLAGS = -module -rpath $(MYSQLLIBdir) +ha_federated_la_CXXFLAGS= $(AM_CFLAGS) -DMYSQL_DYNAMIC_PLUGIN +ha_federated_la_CFLAGS = $(AM_CFLAGS) -DMYSQL_DYNAMIC_PLUGIN +ha_federated_la_SOURCES = ha_federated.cc + + +EXTRA_LIBRARIES = libfederated.a +noinst_LIBRARIES = @plugin_federated_static_target@ +libfederated_a_CXXFLAGS = $(AM_CFLAGS) +libfederated_a_CFLAGS = $(AM_CFLAGS) +libfederated_a_SOURCES= ha_federated.cc + + +EXTRA_DIST = CMakeLists.txt +# Don't update the files from bitkeeper +%::SCCS/s.% diff --git a/sql/ha_federated.cc b/storage/federated/ha_federated.cc index fbb3cbd9646..606fd1d1b31 100644 --- a/sql/ha_federated.cc +++ b/storage/federated/ha_federated.cc @@ -333,7 +333,10 @@ */ +#define MYSQL_SERVER 1 #include "mysql_priv.h" +#include <mysql/plugin.h> + #ifdef USE_PRAGMA_IMPLEMENTATION #pragma implementation // gcc: Class implementation #endif diff --git a/sql/ha_federated.h b/storage/federated/ha_federated.h index ebdc775d3bf..ebdc775d3bf 100644 --- a/sql/ha_federated.h +++ b/storage/federated/ha_federated.h diff --git a/storage/federated/plug.in b/storage/federated/plug.in new file mode 100644 index 00000000000..81c56cb672f --- /dev/null +++ b/storage/federated/plug.in @@ -0,0 +1,4 @@ +MYSQL_STORAGE_ENGINE(federated,,[Federated Storage Engine], + [Connects to tables on remote MySQL servers], [max,max-no-ndb]) +MYSQL_PLUGIN_STATIC(federated, [libfederated.a]) +MYSQL_PLUGIN_DYNAMIC(federated, [ha_federated.la]) diff --git a/storage/heap/plug.in b/storage/heap/plug.in new file mode 100644 index 00000000000..9e744b6ac0d --- /dev/null +++ b/storage/heap/plug.in @@ -0,0 +1,6 @@ +MYSQL_STORAGE_ENGINE(heap,no, [Memory Storage Engine], + [Volatile memory based tables]) +MYSQL_PLUGIN_DIRECTORY(heap, [storage/heap]) +MYSQL_PLUGIN_STATIC(heap, [libheap.a]) +MYSQL_PLUGIN_MANDATORY(heap) dnl Memory tables + diff --git a/storage/innobase/plug.in b/storage/innobase/plug.in new file mode 100644 index 00000000000..b3a90c5a98f --- /dev/null +++ b/storage/innobase/plug.in @@ -0,0 +1,9 @@ +MYSQL_STORAGE_ENGINE(innobase, innodb, [InnoDB Storage Engine], + [Transactional Tables using InnoDB], [max,max-no-ndb]) +MYSQL_PLUGIN_DIRECTORY(innobase, [storage/innobase]) +MYSQL_PLUGIN_STATIC(innobase, [libinnobase.a]) +MYSQL_PLUGIN_ACTIONS(innobase, [ + AC_CHECK_LIB(rt, aio_read, [innodb_system_libs="-lrt"]) + AC_SUBST(innodb_system_libs) +]) + diff --git a/storage/myisam/plug.in b/storage/myisam/plug.in new file mode 100644 index 00000000000..3160752182d --- /dev/null +++ b/storage/myisam/plug.in @@ -0,0 +1,6 @@ +MYSQL_STORAGE_ENGINE(myisam,no, [MyISAM Storage Engine], + [Traditional non-transactional MySQL tables]) +MYSQL_PLUGIN_DIRECTORY(myisam, [storage/myisam]) +MYSQL_PLUGIN_STATIC(myisam, [libmyisam.a]) +MYSQL_PLUGIN_MANDATORY(myisam) dnl Default + diff --git a/storage/myisammrg/plug.in b/storage/myisammrg/plug.in new file mode 100644 index 00000000000..b4b2af8d984 --- /dev/null +++ b/storage/myisammrg/plug.in @@ -0,0 +1,5 @@ +MYSQL_STORAGE_ENGINE(myisammrg,no,[MyISAM MERGE Engine], + [Merge multiple MySQL tables into one]) +MYSQL_PLUGIN_DIRECTORY(myisammrg,[storage/myisammrg]) +MYSQL_PLUGIN_STATIC(myisammrg, [libmyisammrg.a]) +MYSQL_PLUGIN_MANDATORY(myisammrg) diff --git a/storage/ndb/plug.in b/storage/ndb/plug.in new file mode 100644 index 00000000000..a7e351417b1 --- /dev/null +++ b/storage/ndb/plug.in @@ -0,0 +1,6 @@ +MYSQL_STORAGE_ENGINE(ndbcluster, ndbcluster, [Cluster Storage Engine], + [High Availability Clustered tables], [max]) +MYSQL_PLUGIN_DIRECTORY(ndbcluster,[storage/ndb]) +MYSQL_PLUGIN_STATIC(ndbcluster, [[\$(ndbcluster_libs) \$(ndbcluster_system_libs) \$(NDB_SCI_LIBS)]]) +MYSQL_PLUGIN_ACTIONS(ndbcluster,[MYSQL_SETUP_NDBCLUSTER]) +MYSQL_PLUGIN_DEPENDS(ndbcluster, [partition]) |