Commit 20b687ce authored by acurtis@xiphis.org's avatar acurtis@xiphis.org

WL#3201 post-review fixups

parent f1d49211
...@@ -325,6 +325,7 @@ AC_DEFUN([__MYSQL_EMIT_CHECK_PLUGIN],[ ...@@ -325,6 +325,7 @@ AC_DEFUN([__MYSQL_EMIT_CHECK_PLUGIN],[
if test "X[$with_plugin_]$2" = Xno; then if test "X[$with_plugin_]$2" = Xno; then
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
else else
m4_ifdef([$8],m4_ifdef([$7],[],[[with_plugin_]$2='']))
if test "X[$mysql_plugin_]$2" != Xyes -a \ if test "X[$mysql_plugin_]$2" != Xyes -a \
"X[$with_plugin_]$2" != Xyes; then "X[$with_plugin_]$2" != Xyes; then
m4_ifdef([$8],[ m4_ifdef([$8],[
...@@ -504,6 +505,8 @@ dnl _MYSQL_PLUGAPPEND([name],[to-append]) ...@@ -504,6 +505,8 @@ dnl _MYSQL_PLUGAPPEND([name],[to-append])
dnl dnl
dnl DESCRIPTION dnl DESCRIPTION
dnl Helper macro for appending to colon-delimited lists dnl Helper macro for appending to colon-delimited lists
dnl Optinal 3rd argument is for actions only required when defining
dnl macro named for the first time.
AC_DEFUN([_MYSQL_PLUGAPPEND],[ AC_DEFUN([_MYSQL_PLUGAPPEND],[
m4_ifdef([$1],[ m4_ifdef([$1],[
...@@ -594,8 +597,8 @@ m4_ifdef([$9],[ ...@@ -594,8 +597,8 @@ m4_ifdef([$9],[
]) ])
AC_DEFUN([_PLUGIN_BUILD_TYPE], AC_DEFUN([_PLUGIN_BUILD_TYPE],
[m4_ifdef([$1],[ifelse($1,[no],[],[static ]m4_ifdef([$2],[and dnl [m4_ifdef([$1],[static ]m4_ifdef([$2],[and dnl
]))])[]m4_ifdef([$2],[dynamic],[m4_ifdef([$1],[],[static])])]) ]))[]m4_ifdef([$2],[dynamic],[m4_ifdef([$1],[],[static])])])
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
...@@ -610,13 +613,26 @@ AC_DEFUN([_MYSQL_EMIT_PLUGINS],[ ...@@ -610,13 +613,26 @@ AC_DEFUN([_MYSQL_EMIT_PLUGINS],[
m4_ifdef([MYSQL_PLUGIN_DISABLED_]AS_TR_CPP([$1]),[ m4_ifdef([MYSQL_PLUGIN_DISABLED_]AS_TR_CPP([$1]),[
AC_MSG_ERROR([plugin $1 is disabled]) AC_MSG_ERROR([plugin $1 is disabled])
],[ ],[
[mysql_plugin_]m4_bpatsubst([$1], -, _)=yes _MYSQL_EMIT_PLUGIN_ENABLE([$1], m4_bpatsubst([$1], -, _),
[MYSQL_PLUGIN_NAME_]AS_TR_CPP([$1]),
[MYSQL_PLUGIN_STATIC_]AS_TR_CPP([$1]),
[MYSQL_PLUGIN_DYNAMIC_]AS_TR_CPP([$1]))
]) ])
;; ;;
_MYSQL_EMIT_PLUGINS(m4_shift($@)) _MYSQL_EMIT_PLUGINS(m4_shift($@))
]) ])
]) ])
AC_DEFUN([_MYSQL_EMIT_PLUGIN_ENABLE],[
m4_ifdef([$5],m4_ifdef([$4],[
[mysql_plugin_]$2=yes
],[
AC_MSG_WARN([$3 can only be built as a plugin])
]),[
[mysql_plugin_]$2=yes
])
])
AC_DEFUN([_MYSQL_EMIT_PLUGIN_DEPENDS], [ AC_DEFUN([_MYSQL_EMIT_PLUGIN_DEPENDS], [
ifelse($#, 0, [], [$#:$1], [1:], [], [ ifelse($#, 0, [], [$#:$1], [1:], [], [
_MYSQL_EMIT_CHECK_DEPENDS(m4_bpatsubst([$1], -, _), _MYSQL_EMIT_CHECK_DEPENDS(m4_bpatsubst([$1], -, _),
......
...@@ -70,11 +70,15 @@ struct binlog_trx_data { ...@@ -70,11 +70,15 @@ struct binlog_trx_data {
Rows_log_event *pending; // The pending binrows event Rows_log_event *pending; // The pending binrows event
}; };
static const char binlog_hton_name[]= "binlog";
static const char binlog_hton_comment[]=
"This is a meta storage engine to represent the binlog in a transaction";
handlerton binlog_hton = { handlerton binlog_hton = {
MYSQL_HANDLERTON_INTERFACE_VERSION, MYSQL_HANDLERTON_INTERFACE_VERSION,
"binlog", binlog_hton_name,
SHOW_OPTION_YES, SHOW_OPTION_YES,
"This is a meta storage engine to represent the binlog in a transaction", binlog_hton_comment,
DB_TYPE_BINLOG, /* IGNORE for now */ DB_TYPE_BINLOG, /* IGNORE for now */
binlog_init, binlog_init,
0, 0,
...@@ -4350,9 +4354,9 @@ mysql_declare_plugin(binlog) ...@@ -4350,9 +4354,9 @@ mysql_declare_plugin(binlog)
{ {
MYSQL_STORAGE_ENGINE_PLUGIN, MYSQL_STORAGE_ENGINE_PLUGIN,
&binlog_hton, &binlog_hton,
binlog_hton.name, binlog_hton_name,
"MySQL AB", "MySQL AB",
"Binlog Engine", binlog_hton_comment,
NULL, /* Plugin Init */ NULL, /* Plugin Init */
NULL, /* Plugin Deinit */ NULL, /* Plugin Deinit */
0x0100 /* 1.0 */, 0x0100 /* 1.0 */,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment