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
20b687ce
Commit
20b687ce
authored
May 02, 2006
by
acurtis@xiphis.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WL#3201 post-review fixups
parent
f1d49211
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
7 deletions
+27
-7
config/ac-macros/plugins.m4
config/ac-macros/plugins.m4
+19
-3
sql/log.cc
sql/log.cc
+8
-4
No files found.
config/ac-macros/plugins.m4
View file @
20b687ce
...
@@ -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], -, _),
...
...
sql/log.cc
View file @
20b687ce
...
@@ -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 */
,
...
...
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