diff options
author | unknown <brian@zim.(none)> | 2005-03-22 16:10:39 -0800 |
---|---|---|
committer | unknown <brian@zim.(none)> | 2005-03-22 16:10:39 -0800 |
commit | 11a2094bdd5bdad739e2c3a69eace9c0c1a2df2b (patch) | |
tree | 5c6b4d736e4b7ef46a5f108c4b75ea97249d7398 /acinclude.m4 | |
parent | 8ffb2e0bc9069ec84b6119ae883c141f312e99ca (diff) | |
download | mariadb-git-11a2094bdd5bdad739e2c3a69eace9c0c1a2df2b.tar.gz |
Additional storage engine called "blackhole". Customer request, and for that matter a Zawodny request. With this you can alter table to a type of table that would never store data. Its a /dev/null for a database.
acinclude.m4:
New macro rule for ha_blackhole.
configure.in:
Rule enabling blackhole engine
sql/Makefile.am:
Additions to Makefile for blackhole engine
sql/handler.cc:
Ifdef enable code for blackhole (and message for "what does this thing do").
sql/handler.h:
Flag for storage engine type.
sql/mysql_priv.h:
Added blackhole type.
sql/mysqld.cc:
Updates for building backhole.
sql/set_var.cc:
Show variable for blackhole engine
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 5ddd8952c42..8d98987e65e 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1511,6 +1511,36 @@ dnl END OF MYSQL_CHECK_EXAMPLE SECTION dnl --------------------------------------------------------------------------- dnl --------------------------------------------------------------------------- +dnl Macro: MYSQL_CHECK_BLACKHOLEDB +dnl Sets HAVE_BLACKHOLE_DB if --with-blackhole-storage-engine is used +dnl --------------------------------------------------------------------------- +AC_DEFUN([MYSQL_CHECK_BLACKHOLEDB], [ + AC_ARG_WITH([blackhole-storage-engine], + [ + --with-blackhole-storage-engine + Enable the Blackhole Storage Engine], + [blackholedb="$withval"], + [blackholedb=no]) + AC_MSG_CHECKING([for blackhole storage engine]) + + case "$blackholedb" in + yes ) + AC_DEFINE([HAVE_BLACKHOLE_DB], [1], [Builds Blackhole DB]) + AC_MSG_RESULT([yes]) + [blackholedb=yes] + ;; + * ) + AC_MSG_RESULT([no]) + [blackholedb=no] + ;; + esac + +]) +dnl --------------------------------------------------------------------------- +dnl END OF MYSQL_CHECK_BLACKHOLE SECTION +dnl --------------------------------------------------------------------------- + +dnl --------------------------------------------------------------------------- dnl Macro: MYSQL_CHECK_ARCHIVEDB dnl Sets HAVE_ARCHIVE_DB if --with-archive-storage-engine is used dnl --------------------------------------------------------------------------- |