diff options
author | Alexander Nozdrin <alik@sun.com> | 2010-04-27 13:58:21 +0400 |
---|---|---|
committer | Alexander Nozdrin <alik@sun.com> | 2010-04-27 13:58:21 +0400 |
commit | e642701c325e7b557d1a16d98f110581c26c2f28 (patch) | |
tree | 6fc830df498046ca29b2381fb809726faeb04f52 /storage | |
parent | a0f8951963443db308d072dbc0794bb93d2fcf45 (diff) | |
parent | b6dcd0ecbee17787297e882ed63cf4e13d981943 (diff) | |
download | mariadb-git-e642701c325e7b557d1a16d98f110581c26c2f28.tar.gz |
Manual merge from mysql-trunk.
Conflicts:
- mysql-test/suite/rpl/r/rpl_stm_mixing_engines.result
Diffstat (limited to 'storage')
-rw-r--r-- | storage/archive/Makefile.am | 20 | ||||
-rw-r--r-- | storage/archive/azlib.h | 3 | ||||
-rw-r--r-- | storage/blackhole/Makefile.am | 23 | ||||
-rw-r--r-- | storage/example/Makefile.am | 28 | ||||
-rw-r--r-- | storage/innobase/handler/ha_innodb.cc | 2 | ||||
-rw-r--r-- | storage/innobase/handler/i_s.cc | 5 | ||||
-rw-r--r-- | storage/innobase/trx/trx0i_s.c | 9 | ||||
-rw-r--r-- | storage/myisam/ha_myisam.h | 6 | ||||
-rw-r--r-- | storage/perfschema/unittest/pfs-t.cc | 1 | ||||
-rw-r--r-- | storage/perfschema/unittest/pfs_instr-oom-t.cc | 1 | ||||
-rw-r--r-- | storage/perfschema/unittest/pfs_instr-t.cc | 1 | ||||
-rw-r--r-- | storage/perfschema/unittest/pfs_instr_class-oom-t.cc | 1 | ||||
-rw-r--r-- | storage/perfschema/unittest/pfs_instr_class-t.cc | 4 |
13 files changed, 69 insertions, 35 deletions
diff --git a/storage/archive/Makefile.am b/storage/archive/Makefile.am index bb88ff2e8d1..ca7942c082d 100644 --- a/storage/archive/Makefile.am +++ b/storage/archive/Makefile.am @@ -71,24 +71,23 @@ EXTRA_DIST = CMakeLists.txt plug.in if HAVE_DTRACE_DASH_G # The object for static and dynamic linking of archive differ # For static linkage of archive to mysqld + libarchive_a_LIBADD = probes_mysql.o libarchive_a_DEPENDENCIES = probes_mysql.o dtrace_files dtrace_providers # For archive as shared library ha_archive_la_LIBADD = probes_sh_mysql.o -ha_archive_la_DEPENDENCIES = probes_sh_mysql.o dtrace_shared_files dtrace_providers - -CLEANFILES = $(DTRACEPROVIDER) dtrace_files dtrace_providers dtrace_shared_files dtrace_sources -DTRACEFILES = libarchive_a-ha_archive.o -DTRACESHAREDFILES = .libs/ha_archive_la-ha_archive.o # Hack: We "depend" on ".libs/" but have no rule for it, # but it is created as a byproduct of the ".lo" -DTRACESHAREDDEPEND = ha_archive_la-ha_archive.lo +DTRACESHAREDDEPS = ha_archive_la-ha_archive.lo +DTRACESHAREDFILES = ha_archive_la-ha_archive.o DTRACEPROVIDER = probes_mysql.d +ha_archive_la_DEPENDENCIES = probes_sh_mysql.o $(DTRACESHAREDDEPS) dtrace_providers + +CLEANFILES = $(DTRACEPROVIDER) dtrace_files dtrace_providers $(DTRACESHAREDFILES) +DTRACEFILES = libarchive_a-ha_archive.o dtrace_files: echo $(DTRACEFILES) > $@ -dtrace_shared_files: - echo $(DTRACESHAREDFILES) > $@ dtrace_providers: probes_mysql.d echo $(DTRACEPROVIDER) > $@ probes_mysql.d: @@ -96,11 +95,12 @@ probes_mysql.d: $(CP) $(top_srcdir)/include/probes_mysql.d.base probes_mysql.d echo timestamp > dtrace_sources -probes_sh_mysql.o: $(DTRACEPROVIDER) $(DTRACESHAREDDEPEND) +probes_sh_mysql.o: $(DTRACEPROVIDER) $(DTRACESHAREDDEPS) $(DTRACE) $(DTRACEFLAGS) -G -s $(DTRACEPROVIDER) $(DTRACESHAREDFILES) -o $@ - + $(CP) $(DTRACESHAREDFILES) .libs probes_mysql.o: $(DTRACEPROVIDER) $(DTRACEFILES) $(DTRACE) $(DTRACEFLAGS) -G -s $(DTRACEPROVIDER) $(DTRACEFILES) -o $@ + endif # Don't update the files from bitkeeper diff --git a/storage/archive/azlib.h b/storage/archive/azlib.h index d7abb40b2ae..29a6329fb0a 100644 --- a/storage/archive/azlib.h +++ b/storage/archive/azlib.h @@ -33,10 +33,9 @@ (zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format). */ -#include <zlib.h> - #include "../../mysys/mysys_priv.h" #include <my_dir.h> +#include <zlib.h> #ifdef __cplusplus extern "C" { diff --git a/storage/blackhole/Makefile.am b/storage/blackhole/Makefile.am index 538dc5999f0..04ec7a64aa9 100644 --- a/storage/blackhole/Makefile.am +++ b/storage/blackhole/Makefile.am @@ -1,5 +1,5 @@ -# Copyright (C) 2006 MySQL AB -# +# Copyright (C) 2005-2006 MySQL AB, 2009 Sun Microsystems, Inc. +# All rights reserved. # 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; version 2 of the License. @@ -50,11 +50,22 @@ libblackhole_a_SOURCES= ha_blackhole.cc EXTRA_DIST = CMakeLists.txt plug.in if HAVE_DTRACE_DASH_G +# The object for static and dynamic linking of blackhole differ +# For static linkage of blackhole to mysqld + libblackhole_a_LIBADD = probes_mysql.o libblackhole_a_DEPENDENCIES = probes_mysql.o dtrace_files dtrace_providers -CLEANFILES = probes_mysql.o dtrace_files dtrace_providers -DTRACEFILES = libblackhole_a-ha_blackhole.o +# For blackhole as shared library +ha_blackhole_la_LIBADD = probes_sh_mysql.o +# Hack: We "depend" on ".libs/" but have no rule for it, +# but it is created as a byproduct of the ".lo" +DTRACESHAREDDEPS = ha_blackhole_la-ha_blackhole.lo +DTRACESHAREDFILES = ha_blackhole_la-ha_blackhole.o DTRACEPROVIDER = probes_mysql.d +ha_blackhole_la_DEPENDENCIES = probes_sh_mysql.o $(DTRACESHAREDDEPS) dtrace_providers + +CLEANFILES = $(DTRACEPROVIDERS) dtrace_files dtrace_providers $(DTRACESHAREDDEPS) +DTRACEFILES = libblackhole_a-ha_blackhole.o dtrace_files: echo $(DTRACEFILES) > $@ @@ -65,8 +76,12 @@ probes_mysql.d: $(CP) $(top_srcdir)/include/probes_mysql.d.base probes_mysql.d echo timestamp > dtrace_sources +probes_sh_mysql.o: $(DTRACEPROVIDER) $(DTRACESHAREDDEPS) + $(DTRACE) $(DTRACEFLAGS) -G -s $(DTRACEPROVIDER) $(DTRACESHAREDFILES) -o $@ + $(CP) $(DTRACESHAREDFILES) .libs probes_mysql.o: $(DTRACEPROVIDER) $(DTRACEFILES) $(DTRACE) $(DTRACEFLAGS) -G -s $(DTRACEPROVIDER) $(DTRACEFILES) -o $@ + endif # Don't update the files from bitkeeper diff --git a/storage/example/Makefile.am b/storage/example/Makefile.am index 1179a338ee2..14787f082c8 100644 --- a/storage/example/Makefile.am +++ b/storage/example/Makefile.am @@ -1,5 +1,5 @@ -# Copyright (C) 2005-2006 MySQL AB -# +# Copyright (C) 2005-2006 MySQL AB, 2009 Sun Microsystems, Inc. +# All rights reserved. # 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; version 2 of the License. @@ -23,7 +23,7 @@ pkgplugindir = $(pkglibdir)/plugin INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include \ -I$(top_srcdir)/regex \ -I$(top_srcdir)/sql \ - -I$(srcdir) + -I$(srcdir) WRAPLIBS= LDADD = @@ -50,12 +50,22 @@ libexample_a_SOURCES= ha_example.cc EXTRA_DIST = CMakeLists.txt plug.in if HAVE_DTRACE_DASH_G +# The object for static and dynamic linking of example differ +# For static linkage of example to mysqld +# That's actually not needed as example is only dynamic loadable, but for completion libexample_a_LIBADD = probes_mysql.o -libexample_a_DEPENDENCIES = probes_mysql.o -CLEANFILES = -BUILT_SOURCES = -DTRACEFILES = libexample_a-ha_example.o +libexample_a_DEPENDENCIES = probes_mysql.o dtrace_files dtrace_providers +# For example as shared library +ha_example_la_LIBADD = probes_sh_mysql.o +# Hack: We "depend" on ".libs/" but have no rule for it, +# but it is created as a byproduct of the ".lo" +DTRACESHAREDDEPS = ha_example_la-ha_example.lo +DTRACESHAREDFILES = ha_example_la-ha_example.o DTRACEPROVIDER = probes_mysql.d +ha_example_la_DEPENDENCIES = probes_sh_mysql.o $(DTRACESHAREDDEPS) dtrace_providers + +CLEANFILES = $(DTRACEPROVIDER) dtrace_files dtrace_providers $(DTRACESHAREDFILES) +DTRACEFILES = libexample_a-ha_example.o dtrace_files: echo $(DTRACEFILES) > $@ @@ -66,8 +76,12 @@ probes_mysql.d: $(CP) $(top_srcdir)/include/probes_mysql.d.base probes_mysql.d echo timestamp > dtrace_sources +probes_sh_mysql.o: $(DTRACEPROVIDER) $(DTRACESHAREDDEPS) + $(DTRACE) $(DTRACEFLAGS) -G -s $(DTRACEPROVIDER) $(DTRACESHAREDFILES) -o $@ + $(CP) $(DTRACESHAREDFILES) .libs probes_mysql.o: $(DTRACEPROVIDER) $(DTRACEFILES) $(DTRACE) $(DTRACEFLAGS) -G -s $(DTRACEPROVIDER) $(DTRACEFILES) -o $@ + endif # Don't update the files from bitkeeper diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc index 3debf2805b6..d1cd508a674 100644 --- a/storage/innobase/handler/ha_innodb.cc +++ b/storage/innobase/handler/ha_innodb.cc @@ -114,8 +114,6 @@ extern "C" { # endif /* MYSQL_PLUGIN_IMPORT */ #if MYSQL_VERSION_ID < 50124 -/* this is defined in mysql_priv.h inside #ifdef MYSQL_SERVER -but we need it here */ bool check_global_access(THD *thd, ulong want_access); #endif /* MYSQL_VERSION_ID < 50124 */ diff --git a/storage/innobase/handler/i_s.cc b/storage/innobase/handler/i_s.cc index 7d8b4a8dd40..fdcec7811d0 100644 --- a/storage/innobase/handler/i_s.cc +++ b/storage/innobase/handler/i_s.cc @@ -109,11 +109,6 @@ time_t MYSQL_TYPE_DATETIME --------------------------------- */ -/* XXX these are defined in mysql_priv.h inside #ifdef MYSQL_SERVER */ -bool schema_table_store_record(THD *thd, TABLE *table); -void localtime_to_TIME(MYSQL_TIME *to, struct tm *from); -bool check_global_access(THD *thd, ulong want_access); - /*******************************************************************//** Common function to fill any of the dynamic tables: INFORMATION_SCHEMA.innodb_trx diff --git a/storage/innobase/trx/trx0i_s.c b/storage/innobase/trx/trx0i_s.c index 1b20eaabf42..a3f73e0c9e8 100644 --- a/storage/innobase/trx/trx0i_s.c +++ b/storage/innobase/trx/trx0i_s.c @@ -28,11 +28,18 @@ table cache" for later retrieval. Created July 17, 2007 Vasil Dimov *******************************************************/ +/* Found during the build of 5.5.3 on Linux 2.4 and early 2.6 kernels: + The includes "univ.i" -> "my_global.h" cause a different path + to be taken further down with pthread functions and types, + so they must come first. + From the symptoms, this is related to bug#46587 in the MySQL bug DB. +*/ +#include "univ.i" + #include <mysql/plugin.h> #include "mysql_addons.h" -#include "univ.i" #include "buf0buf.h" #include "dict0dict.h" #include "ha0storage.h" diff --git a/storage/myisam/ha_myisam.h b/storage/myisam/ha_myisam.h index f08150215a6..1a8246ae882 100644 --- a/storage/myisam/ha_myisam.h +++ b/storage/myisam/ha_myisam.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2000-2006 MySQL AB +/* Copyright (C) 2000, 2010 Oracle and/or its affiliates. All rights reserved. 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 @@ -11,7 +11,7 @@ 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 */ + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifdef USE_PRAGMA_INTERFACE @@ -129,7 +129,7 @@ class ha_myisam: public handler int repair(THD* thd, HA_CHECK_OPT* check_opt); bool check_and_repair(THD *thd); bool is_crashed() const; - bool auto_repair() const { return myisam_recover_options != 0; } + bool auto_repair() const { return myisam_recover_options != HA_RECOVER_OFF; } int optimize(THD* thd, HA_CHECK_OPT* check_opt); int assign_to_keycache(THD* thd, HA_CHECK_OPT* check_opt); int preload_keys(THD* thd, HA_CHECK_OPT* check_opt); diff --git a/storage/perfschema/unittest/pfs-t.cc b/storage/perfschema/unittest/pfs-t.cc index 012c6e7d87a..2f3fb2792fc 100644 --- a/storage/perfschema/unittest/pfs-t.cc +++ b/storage/perfschema/unittest/pfs-t.cc @@ -13,6 +13,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include <my_pthread.h> #include <sql_priv.h> #include <my_global.h> #include <pfs_server.h> diff --git a/storage/perfschema/unittest/pfs_instr-oom-t.cc b/storage/perfschema/unittest/pfs_instr-oom-t.cc index 4ea2e038b24..7b3df877133 100644 --- a/storage/perfschema/unittest/pfs_instr-oom-t.cc +++ b/storage/perfschema/unittest/pfs_instr-oom-t.cc @@ -13,6 +13,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include <my_pthread.h> #include <sql_priv.h> #include <my_global.h> #include <pfs_instr.h> diff --git a/storage/perfschema/unittest/pfs_instr-t.cc b/storage/perfschema/unittest/pfs_instr-t.cc index 4e73276b467..157031cb234 100644 --- a/storage/perfschema/unittest/pfs_instr-t.cc +++ b/storage/perfschema/unittest/pfs_instr-t.cc @@ -13,6 +13,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include <my_pthread.h> #include <sql_priv.h> #include <my_global.h> #include <pfs_instr.h> diff --git a/storage/perfschema/unittest/pfs_instr_class-oom-t.cc b/storage/perfschema/unittest/pfs_instr_class-oom-t.cc index 9cab0d18b33..064c8c062a4 100644 --- a/storage/perfschema/unittest/pfs_instr_class-oom-t.cc +++ b/storage/perfschema/unittest/pfs_instr_class-oom-t.cc @@ -13,6 +13,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include <my_pthread.h> #include <sql_priv.h> #include <my_global.h> #include <pfs_instr_class.h> diff --git a/storage/perfschema/unittest/pfs_instr_class-t.cc b/storage/perfschema/unittest/pfs_instr_class-t.cc index 5d7e0bf734f..c8dce2fd7fb 100644 --- a/storage/perfschema/unittest/pfs_instr_class-t.cc +++ b/storage/perfschema/unittest/pfs_instr_class-t.cc @@ -13,8 +13,10 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include <sql_priv.h> +#include <my_pthread.h> #include <my_global.h> +#include <sql_priv.h> + #include <string.h> // strncpy #include <pfs_instr_class.h> #include <pfs_instr.h> |