File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,13 +21,14 @@ MYSQLDATAdir = $(localstatedir)
2121MYSQLSHAREdir = $(pkgdatadir )
2222MYSQLBASEdir = $(prefix )
2323MYSQLLIBdir = $(libdir )
24+ pkgplugindir = $(libdir ) /@PACKAGE@/plugin
2425
2526EXTRA_DIST = libmysqld.def CMakeLists.txt
2627DEFS = -DEMBEDDED_LIBRARY -DMYSQL_SERVER \
2728 -DDEFAULT_MYSQL_HOME="\"$(MYSQLBASEdir ) \"" \
2829 -DDATADIR="\"$(MYSQLDATAdir ) \"" \
2930 -DSHAREDIR="\"$(MYSQLSHAREdir ) \"" \
30- -DLIBDIR ="\"$(MYSQLLIBdir ) \""
31+ -DPLUGINDIR ="\"$(pkgplugindir ) \""
3132INCLUDES = -I$(top_builddir ) /include -I$(top_srcdir ) /include \
3233 -I$(top_builddir ) /sql -I$(top_srcdir ) /sql \
3334 -I$(top_srcdir ) /sql/examples \
Original file line number Diff line number Diff line change 1+ set autocommit=1;
2+ reset master;
3+ create table bug16206 (a int);
4+ insert into bug16206 values(1);
5+ start transaction;
6+ insert into bug16206 values(2);
7+ commit;
8+ show binlog events;
9+ Log_name Pos Event_type Server_id End_log_pos Info
10+ f n Format_desc 1 n Server ver: VERSION, Binlog ver: 4
11+ f n Query 1 n use `test`; create table bug16206 (a int)
12+ f n Query 1 n use `test`; insert into bug16206 values(1)
13+ f n Query 1 n use `test`; insert into bug16206 values(2)
14+ drop table bug16206;
15+ reset master;
16+ create table bug16206 (a int) engine= bdb;
17+ insert into bug16206 values(0);
18+ insert into bug16206 values(1);
19+ start transaction;
20+ insert into bug16206 values(2);
21+ commit;
22+ insert into bug16206 values(3);
23+ show binlog events;
24+ Log_name Pos Event_type Server_id End_log_pos Info
25+ f n Format_desc 1 n Server ver: VERSION, Binlog ver: 4
26+ f n Query 1 n use `test`; create table bug16206 (a int) engine= bdb
27+ f n Query 1 n use `test`; insert into bug16206 values(0)
28+ f n Query 1 n use `test`; insert into bug16206 values(1)
29+ f n Query 1 n use `test`; BEGIN
30+ f n Query 1 n use `test`; insert into bug16206 values(2)
31+ f n Query 1 n use `test`; COMMIT
32+ f n Query 1 n use `test`; insert into bug16206 values(3)
33+ drop table bug16206;
34+ set autocommit=0;
35+ End of 5.0 tests
Original file line number Diff line number Diff line change 1+ -- source include/not_embedded.inc
2+ -- source include/have_bdb.inc
3+
4+ #
5+ # Bug #16206: Superfluous COMMIT event in binlog when updating BDB in autocommit mode
6+ #
7+ set autocommit=1;
8+
9+ let $VERSION=`select version()`;
10+
11+ reset master;
12+ create table bug16206 (a int);
13+ insert into bug16206 values(1);
14+ start transaction;
15+ insert into bug16206 values(2);
16+ commit;
17+ --replace_result $VERSION VERSION
18+ --replace_column 1 f 2 n 5 n
19+ show binlog events;
20+ drop table bug16206;
21+
22+ reset master;
23+ create table bug16206 (a int) engine= bdb;
24+ insert into bug16206 values(0);
25+ insert into bug16206 values(1);
26+ start transaction;
27+ insert into bug16206 values(2);
28+ commit;
29+ insert into bug16206 values(3);
30+ --replace_result $VERSION VERSION
31+ --replace_column 1 f 2 n 5 n
32+ show binlog events;
33+ drop table bug16206;
34+
35+ set autocommit=0;
36+
37+
38+ --echo End of 5.0 tests
Original file line number Diff line number Diff line change @@ -18,14 +18,15 @@ MYSQLDATAdir = $(localstatedir)
1818MYSQLSHAREdir = $(pkgdatadir )
1919MYSQLBASEdir = $(prefix )
2020MYSQLLIBdir = $(pkglibdir )
21+ pkgplugindir = $(libdir ) /@PACKAGE@/plugin
2122INCLUDES = -I$(top_srcdir ) /include -I$(top_builddir ) /include \
2223 -I$(top_srcdir ) /regex \
2324 -I$(top_srcdir ) /sql \
2425 -I$(srcdir ) @ZLIB_INCLUDES@
2526
2627EXTRA_LTLIBRARIES = libdaemon_example.la
27- pkglib_LTLIBRARIES = @plugin_daemon_example_shared_target@
28- libdaemon_example_la_LDFLAGS = -module -rpath $(MYSQLLIBdir )
28+ pkgplugin_LTLIBRARIES = @plugin_daemon_example_shared_target@
29+ libdaemon_example_la_LDFLAGS = -module -rpath $(pkgplugindir )
2930libdaemon_example_la_CXXFLAGS = $(AM_CFLAGS ) -DMYSQL_DYNAMIC_PLUGIN
3031libdaemon_example_la_CFLAGS = $(AM_CFLAGS ) -DMYSQL_DYNAMIC_PLUGIN
3132libdaemon_example_la_SOURCES = daemon_example.cc
Original file line number Diff line number Diff line change 1515
1616# Makefile.am example for a plugin
1717
18- pkglibdir =$(libdir ) /mysql
18+ pkgplugindir =$(libdir ) /@PACKAGE@/plugin
1919INCLUDES = -I$(top_builddir ) /include -I$(top_srcdir ) /include
2020# noinst_LTLIBRARIES= mypluglib.la
21- pkglib_LTLIBRARIES = mypluglib.la
21+ pkgplugin_LTLIBRARIES = mypluglib.la
2222mypluglib_la_SOURCES = plugin_example.c
23- mypluglib_la_LDFLAGS = -module -rpath $(pkglibdir )
23+ mypluglib_la_LDFLAGS = -module -rpath $(pkgplugindir )
2424mypluglib_la_CFLAGS = -DMYSQL_DYNAMIC_PLUGIN
2525
2626# Don't update the files from bitkeeper
Original file line number Diff line number Diff line change @@ -90,6 +90,8 @@ CLEANFILES = @server_scripts@ \
9090 mysql_tableinfo \
9191 mysqld_multi
9292
93+ pkgplugindir = $(libdir ) /@PACKAGE@/plugin
94+
9395# Default same as 'pkgdatadir', but we can override it
9496pkgsuppdir = $(datadir ) /@PACKAGE@
9597
@@ -137,6 +139,7 @@ SUFFIXES = .sh
137139 -e ' s!@' ' pkglibdir' ' @!$(pkglibdir)!g' \
138140 -e ' s!@' ' pkgincludedir' ' @!$(pkgincludedir)!g' \
139141 -e ' s!@' ' pkgdatadir' ' @!$(pkgdatadir)!g' \
142+ -e ' s!@' ' pkgplugindir' ' @!$(pkgplugindir)!g' \
140143 -e ' s!@' ' pkgsuppdir' ' @!$(pkgsuppdir)!g' \
141144 -e ' s!@' ' sysconfdir' ' @!$(sysconfdir)!g' \
142145 -e ' s!@' ' mandir' ' @!$(mandir)!g' \
Original file line number Diff line number Diff line change 3030# "pkglibdir" is set to the same as "libdir"
3131# "pkgincludedir" is set to the same as "includedir"
3232# "pkgdatadir" is set to the same as "datadir"
33+ # "pkgplugindir" is set to "@prefix@/lib/plugin",
34+ # normally "$libdir/plugin"
3335# "pkgsuppdir" is set to "@prefix@/support-files",
3436# normally the same as "datadir"
3537#
@@ -204,6 +206,7 @@ if [ x"$BASE_SYSTEM" != x"netware" ] ; then
204206 pkglibdir=@pkglibdir@ \
205207 pkgincludedir=@pkgincludedir@ \
206208 pkgdatadir=@pkgdatadir@ \
209+ pkgplugindir=@pkgplugindir@ \
207210 pkgsuppdir=@pkgsuppdir@ \
208211 mandir=@mandir@ \
209212 infodir=@infodir@
Original file line number Diff line number Diff line change @@ -87,6 +87,8 @@ pkglibdir='@pkglibdir@'
8787pkglibdir_rel=` echo $pkglibdir | sed -e " s;^$basedir /;;" `
8888fix_path pkglibdir $pkglibdir_rel lib/mysql lib
8989
90+ plugindir=' @pkgplugindir@'
91+
9092pkgincludedir=' @pkgincludedir@'
9193fix_path pkgincludedir include/mysql include
9294
@@ -147,6 +149,7 @@ Options:
147149 --include [$include ]
148150 --libs [$libs ]
149151 --libs_r [$libs_r ]
152+ --plugindir [$plugindir ]
150153 --socket [$socket ]
151154 --port [$port ]
152155 --version [$version ]
@@ -163,6 +166,7 @@ while test $# -gt 0; do
163166 --include) echo " $include " ;;
164167 --libs) echo " $libs " ;;
165168 --libs_r) echo " $libs_r " ;;
169+ --plugindir) echo " $plugindir " ;;
166170 --socket) echo " $socket " ;;
167171 --port) echo " $port " ;;
168172 --version) echo " $version " ;;
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ MYSQLDATAdir = $(localstatedir)
1919MYSQLSHAREdir = $(pkgdatadir )
2020MYSQLBASEdir = $(prefix )
2121MYSQLLIBdir = $(pkglibdir )
22+ pkgplugindir = $(libdir ) /@PACKAGE@/plugin
2223INCLUDES = @ZLIB_INCLUDES@ \
2324 -I$(top_builddir ) /include -I$(top_srcdir ) /include \
2425 -I$(top_srcdir ) /regex -I$(srcdir ) $(openssl_includes )
@@ -136,7 +137,7 @@ DEFS = -DMYSQL_SERVER \
136137 -DDEFAULT_MYSQL_HOME="\"$(MYSQLBASEdir ) \"" \
137138 -DDATADIR="\"$(MYSQLDATAdir ) \"" \
138139 -DSHAREDIR="\"$(MYSQLSHAREdir ) \"" \
139- -DLIBDIR ="\"$(MYSQLLIBdir ) \"" \
140+ -DPLUGINDIR ="\"$(pkgplugindir ) \"" \
140141 @DEFS@
141142
142143BUILT_MAINT_SRC = sql_yacc.cc sql_yacc.h
Original file line number Diff line number Diff line change @@ -8032,7 +8032,7 @@ static void fix_paths(void)
80328032 (void ) my_load_path (mysql_real_data_home,mysql_real_data_home,mysql_home);
80338033 (void ) my_load_path (pidfile_name,pidfile_name,mysql_real_data_home);
80348034 (void ) my_load_path (opt_plugin_dir, opt_plugin_dir_ptr ? opt_plugin_dir_ptr :
8035- get_relative_path (LIBDIR ), mysql_home);
8035+ get_relative_path (PLUGINDIR ), mysql_home);
80368036 opt_plugin_dir_ptr= opt_plugin_dir;
80378037
80388038 char *sharedir=get_relative_path (SHAREDIR);
You can’t perform that action at this time.
0 commit comments