Commit 8877fe73 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

merge

parents 4d1c7b79 9f9ecc06
...@@ -31,12 +31,13 @@ MYSQL_ADD_EXECUTABLE(mysql completion_hash.cc mysql.cc readline.cc ...@@ -31,12 +31,13 @@ MYSQL_ADD_EXECUTABLE(mysql completion_hash.cc mysql.cc readline.cc
TARGET_LINK_LIBRARIES(mysql mysqlclient) TARGET_LINK_LIBRARIES(mysql mysqlclient)
IF(UNIX) IF(UNIX)
TARGET_LINK_LIBRARIES(mysql ${MY_READLINE_LIBRARY}) TARGET_LINK_LIBRARIES(mysql ${MY_READLINE_LIBRARY})
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -rdynamic") SET_TARGET_PROPERTIES(mysql PROPERTIES ENABLE_EXPORTS TRUE)
ENDIF(UNIX) ENDIF(UNIX)
MYSQL_ADD_EXECUTABLE(mysqltest mysqltest.cc COMPONENT Test) MYSQL_ADD_EXECUTABLE(mysqltest mysqltest.cc COMPONENT Test)
SET_SOURCE_FILES_PROPERTIES(mysqltest.cc PROPERTIES COMPILE_FLAGS "-DTHREADS") SET_SOURCE_FILES_PROPERTIES(mysqltest.cc PROPERTIES COMPILE_FLAGS "-DTHREADS")
TARGET_LINK_LIBRARIES(mysqltest mysqlclient regex) TARGET_LINK_LIBRARIES(mysqltest mysqlclient regex)
SET_TARGET_PROPERTIES(mysqltest PROPERTIES ENABLE_EXPORTS TRUE)
MYSQL_ADD_EXECUTABLE(mysqlcheck mysqlcheck.c) MYSQL_ADD_EXECUTABLE(mysqlcheck mysqlcheck.c)
......
...@@ -305,16 +305,27 @@ FUNCTION(GET_DEPENDEND_OS_LIBS target result) ...@@ -305,16 +305,27 @@ FUNCTION(GET_DEPENDEND_OS_LIBS target result)
ENDFUNCTION() ENDFUNCTION()
MACRO(RESTRICT_SYMBOL_EXPORTS target) MACRO(RESTRICT_SYMBOL_EXPORTS target)
SET(VISIBILITY_HIDDEN_FLAG)
IF(CMAKE_COMPILER_IS_GNUCXX AND UNIX) IF(CMAKE_COMPILER_IS_GNUCXX AND UNIX)
CHECK_C_COMPILER_FLAG("-fvisibility=hidden" HAVE_VISIBILITY_HIDDEN) CHECK_C_COMPILER_FLAG("-fvisibility=hidden" HAVE_VISIBILITY_HIDDEN)
IF(HAVE_VISIBILITY_HIDDEN) IF(HAVE_VISIBILITY_HIDDEN)
SET(VISIBILITY_HIDDEN_FLAG "-fvisibility=hidden")
ENDIF()
ENDIF()
IF(CMAKE_C_COMPILER_ID MATCHES "SunPro")
SET(VISIBILITY_HIDDEN_FLAG "-xldscope=hidden")
ENDIF()
IF(VISIBILITY_HIDDEN_FLAG)
GET_TARGET_PROPERTY(COMPILE_FLAGS ${target} COMPILE_FLAGS) GET_TARGET_PROPERTY(COMPILE_FLAGS ${target} COMPILE_FLAGS)
IF(NOT COMPILE_FLAGS) IF(NOT COMPILE_FLAGS)
# Avoid COMPILE_FLAGS-NOTFOUND # Avoid COMPILE_FLAGS-NOTFOUND
SET(COMPILE_FLAGS) SET(COMPILE_FLAGS)
ENDIF() ENDIF()
SET_TARGET_PROPERTIES(${target} PROPERTIES SET_TARGET_PROPERTIES(${target} PROPERTIES
COMPILE_FLAGS "${COMPILE_FLAGS} -fvisibility=hidden") COMPILE_FLAGS "${COMPILE_FLAGS} ${VISIBILITY_HIDDEN_FLAG}")
ENDIF()
ENDIF() ENDIF()
ENDMACRO() ENDMACRO()
...@@ -93,3 +93,8 @@ IF(CMAKE_COMPILER_IS_GNUCC AND CMAKE_SIZEOF_VOID_P EQUAL 4 ...@@ -93,3 +93,8 @@ IF(CMAKE_COMPILER_IS_GNUCC AND CMAKE_SIZEOF_VOID_P EQUAL 4
ENDIF() ENDIF()
ENDIF() ENDIF()
ENDIF() ENDIF()
IF(CMAKE_CXX_COMPILER_ID MATCHES "SunPro")
# Unnamed structs and unions
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -features=extensions")
ENDIF()
...@@ -136,6 +136,7 @@ MACRO(MYSQL_ADD_PLUGIN) ...@@ -136,6 +136,7 @@ MACRO(MYSQL_ADD_PLUGIN)
SET_TARGET_PROPERTIES(${target} PROPERTIES COMPILE_DEFINITONS "MYSQL_SERVER") SET_TARGET_PROPERTIES(${target} PROPERTIES COMPILE_DEFINITONS "MYSQL_SERVER")
DTRACE_INSTRUMENT(${target}) DTRACE_INSTRUMENT(${target})
ADD_DEPENDENCIES(${target} GenError ${ARG_DEPENDENCIES}) ADD_DEPENDENCIES(${target} GenError ${ARG_DEPENDENCIES})
RESTRICT_SYMBOL_EXPORTS(${target})
IF(WITH_EMBEDDED_SERVER) IF(WITH_EMBEDDED_SERVER)
# Embedded library should contain PIC code and be linkable # Embedded library should contain PIC code and be linkable
# to shared libraries (on systems that need PIC) # to shared libraries (on systems that need PIC)
......
...@@ -116,7 +116,6 @@ MACRO (MYSQL_USE_BUNDLED_READLINE) ...@@ -116,7 +116,6 @@ MACRO (MYSQL_USE_BUNDLED_READLINE)
SET(HAVE_HIST_ENTRY) SET(HAVE_HIST_ENTRY)
SET(READLINE_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/cmd-line-utils) SET(READLINE_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/cmd-line-utils)
SET(READLINE_LIBRARY readline) SET(READLINE_LIBRARY readline)
FIND_CURSES()
ADD_SUBDIRECTORY(${CMAKE_SOURCE_DIR}/cmd-line-utils/readline) ADD_SUBDIRECTORY(${CMAKE_SOURCE_DIR}/cmd-line-utils/readline)
ENDMACRO() ENDMACRO()
...@@ -126,10 +125,10 @@ MACRO (MYSQL_FIND_SYSTEM_READLINE) ...@@ -126,10 +125,10 @@ MACRO (MYSQL_FIND_SYSTEM_READLINE)
FIND_LIBRARY(READLINE_LIBRARY NAMES readline) FIND_LIBRARY(READLINE_LIBRARY NAMES readline)
MARK_AS_ADVANCED(READLINE_INCLUDE_DIR READLINE_LIBRARY) MARK_AS_ADVANCED(READLINE_INCLUDE_DIR READLINE_LIBRARY)
SET(CMAKE_REQUIRES_LIBRARIES ${READLINE_LIBRARY}) SET(CMAKE_REQUIRES_LIBRARIES ${READLINE_LIBRARY} ${CURSES_LIBRARY})
IF(READLINE_LIBRARY AND READLINE_INCLUDE_DIR) IF(READLINE_LIBRARY AND READLINE_INCLUDE_DIR)
SET(CMAKE_REQUIRED_LIBRARIES ${READLINE_LIBRARY}) SET(CMAKE_REQUIRED_LIBRARIES ${READLINE_LIBRARY} ${CURSES_LIBRARY})
CHECK_CXX_SOURCE_COMPILES(" CHECK_CXX_SOURCE_COMPILES("
#include <stdio.h> #include <stdio.h>
#include <readline/readline.h> #include <readline/readline.h>
...@@ -175,6 +174,7 @@ MACRO (MYSQL_FIND_SYSTEM_READLINE) ...@@ -175,6 +174,7 @@ MACRO (MYSQL_FIND_SYSTEM_READLINE)
ENDIF(READLINE_V5) ENDIF(READLINE_V5)
ENDIF(NEW_READLINE_INTERFACE) ENDIF(NEW_READLINE_INTERFACE)
ENDIF() ENDIF()
SET(CMAKE_REQUIRES_LIBRARIES )
ENDMACRO() ENDMACRO()
MACRO (MYSQL_FIND_SYSTEM_LIBEDIT) MACRO (MYSQL_FIND_SYSTEM_LIBEDIT)
...@@ -197,6 +197,7 @@ MACRO (MYSQL_FIND_SYSTEM_LIBEDIT) ...@@ -197,6 +197,7 @@ MACRO (MYSQL_FIND_SYSTEM_LIBEDIT)
LIBEDIT_INTERFACE) LIBEDIT_INTERFACE)
SET(USE_LIBEDIT_INTERFACE ${LIBEDIT_INTERFACE}) SET(USE_LIBEDIT_INTERFACE ${LIBEDIT_INTERFACE})
ENDIF() ENDIF()
SET(CMAKE_REQUIRES_LIBRARIES)
ENDMACRO() ENDMACRO()
...@@ -204,6 +205,7 @@ MACRO (MYSQL_CHECK_READLINE) ...@@ -204,6 +205,7 @@ MACRO (MYSQL_CHECK_READLINE)
IF (NOT WIN32) IF (NOT WIN32)
MYSQL_CHECK_MULTIBYTE() MYSQL_CHECK_MULTIBYTE()
SET(WITH_READLINE OFF CACHE BOOL "Use bundled readline") SET(WITH_READLINE OFF CACHE BOOL "Use bundled readline")
FIND_CURSES()
IF(WITH_READLINE) IF(WITH_READLINE)
MYSQL_USE_BUNDLED_READLINE() MYSQL_USE_BUNDLED_READLINE()
...@@ -217,7 +219,7 @@ MACRO (MYSQL_CHECK_READLINE) ...@@ -217,7 +219,7 @@ MACRO (MYSQL_CHECK_READLINE)
ENDIF() ENDIF()
ENDIF() ENDIF()
SET(MY_READLINE_INCLUDE_DIR ${READLINE_INCLUDE_DIR}) SET(MY_READLINE_INCLUDE_DIR ${READLINE_INCLUDE_DIR})
SET(MY_READLINE_LIBRARY ${READLINE_LIBRARY}) SET(MY_READLINE_LIBRARY ${READLINE_LIBRARY} ${CURSES_LIBRARY})
ENDIF(NOT WIN32) ENDIF(NOT WIN32)
ENDMACRO() ENDMACRO()
...@@ -15,22 +15,3 @@ ...@@ -15,22 +15,3 @@
#default-collation = utf8_general_ci #default-collation = utf8_general_ci
#character_set_server = utf8 #character_set_server = utf8
#collation_server = utf8_general_ci #collation_server = utf8_general_ci
#
# * Fine Tuning
#
max_connections = 100
connect_timeout = 5
wait_timeout = 600
sort_buffer_size = 4M
bulk_insert_buffer_size = 16M
tmp_table_size = 32M
max_heap_table_size = 32M
#
# * MyISAM
#
key_buffer_size = 128M
table_cache = 400
myisam_sort_buffer_size = 512M
concurrent_insert = 2
read_buffer_size = 2M
read_rnd_buffer_size = 1M
...@@ -48,15 +48,28 @@ bind-address = 127.0.0.1 ...@@ -48,15 +48,28 @@ bind-address = 127.0.0.1
# #
# * Fine Tuning # * Fine Tuning
# #
max_connections = 100
connect_timeout = 5
wait_timeout = 600
max_allowed_packet = 16M max_allowed_packet = 16M
thread_cache_size = 128 thread_cache_size = 128
sort_buffer_size = 4M
bulk_insert_buffer_size = 16M
tmp_table_size = 32M
max_heap_table_size = 32M
# #
# * MyISAM # * MyISAM
# #
# This replaces the startup script and checks MyISAM tables if needed # This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched. On error, make copy and try a repair. # the first time they are touched. On error, make copy and try a repair.
myisam_recover = BACKUP myisam_recover = BACKUP
key_buffer_size = 128M
#open-files-limit = 2000 #open-files-limit = 2000
table_cache = 400
myisam_sort_buffer_size = 512M
concurrent_insert = 2
read_buffer_size = 2M
read_rnd_buffer_size = 1M
# #
# * Query Cache Configuration # * Query Cache Configuration
# #
......
...@@ -5,6 +5,6 @@ usr/bin ...@@ -5,6 +5,6 @@ usr/bin
usr/sbin usr/sbin
usr/share/man/man8 usr/share/man/man8
usr/share/mysql usr/share/mysql
usr/share/doc/mariadb-server-5.3 usr/share/doc/mariadb-server-5.5
var/run/mysqld var/run/mysqld
var/lib/mysql-upgrade var/lib/mysql-upgrade
...@@ -30,6 +30,8 @@ usr/bin/replace ...@@ -30,6 +30,8 @@ usr/bin/replace
usr/bin/resolve_stack_dump usr/bin/resolve_stack_dump
usr/bin/resolveip usr/bin/resolveip
usr/share/doc/mariadb-server-5.5/mysqld.sym.gz usr/share/doc/mariadb-server-5.5/mysqld.sym.gz
usr/share/doc/mariadb-server-5.5/INFO_SRC
usr/share/doc/mariadb-server-5.5/INFO_BIN
usr/share/lintian/overrides/mariadb-server-5.5 usr/share/lintian/overrides/mariadb-server-5.5
usr/share/man/man1/msql2mysql.1 usr/share/man/man1/msql2mysql.1
usr/share/man/man1/myisamchk.1 usr/share/man/man1/myisamchk.1
......
...@@ -21,7 +21,7 @@ invoke() { ...@@ -21,7 +21,7 @@ invoke() {
fi fi
} }
MYSQL_BOOTSTRAP="/usr/sbin/mysqld --bootstrap --user=mysql --skip-grant-tables --innodb=OFF --pbxt=OFF --default-storage-engine=myisam" MYSQL_BOOTSTRAP="/usr/sbin/mysqld --bootstrap --user=mysql --skip-grant-tables --loose-innodb=OFF --loose-pbxt=OFF --default-storage-engine=myisam"
test_mysql_access() { test_mysql_access() {
mysql --no-defaults -u root -h localhost </dev/null >/dev/null 2>&1 mysql --no-defaults -u root -h localhost </dev/null >/dev/null 2>&1
......
...@@ -66,7 +66,7 @@ endif ...@@ -66,7 +66,7 @@ endif
( test -d $(builddir) || mkdir $(builddir) ) && cd $(builddir) && \ ( test -d $(builddir) || mkdir $(builddir) ) && cd $(builddir) && \
sh -c 'PATH=$${MYSQL_BUILD_PATH:-"/bin:/usr/bin:/usr/local/bin"} \ sh -c 'PATH=$${MYSQL_BUILD_PATH:-"/bin:/usr/bin:/usr/local/bin"} \
CC=$${MYSQL_BUILD_CC:-gcc} \ CC=$${MYSQL_BUILD_CC:-gcc} \
CFLAGS=$${MYSQL_BUILD_CFLAGS:-"-O2 -fno-omit-frame-pointer -g -pipe -Wall -Wno-uninitialized"} \ CFLAGS=$${MYSQL_BUILD_CFLAGS:-"-O2 -fno-omit-frame-pointer -g -pipe -Wall -Wno-uninitialized $$(case `lsb_release -sc` in (lenny) echo -DWORKAROUND_GCC_4_3_2_BUG ;; esac)"} \
CXX=$${MYSQL_BUILD_CXX:-g++} \ CXX=$${MYSQL_BUILD_CXX:-g++} \
CXXFLAGS=$${MYSQL_BUILD_CXXFLAGS:-"-O2 -fno-omit-frame-pointer -g -pipe -Wall -Wno-uninitialized"} \ CXXFLAGS=$${MYSQL_BUILD_CXXFLAGS:-"-O2 -fno-omit-frame-pointer -g -pipe -Wall -Wno-uninitialized"} \
cmake .. \ cmake .. \
...@@ -191,7 +191,7 @@ install: build ...@@ -191,7 +191,7 @@ install: build
install -m 0755 $(BUILDDIR)/scripts/mysqld_safe $(TMP)/usr/bin/mysqld_safe install -m 0755 $(BUILDDIR)/scripts/mysqld_safe $(TMP)/usr/bin/mysqld_safe
mkdir -p $(TMP)/usr/share/doc/mariadb-server-5.5/examples mkdir -p $(TMP)/usr/share/doc/mariadb-server-5.5/examples
# We have a sane my.cnf, cruft not needed (remove my-*.cnf and config-*.cnf) # We have a sane my.cnf, cruft not needed (remove my-*.cnf and config-*.cnf)
# $(TMP)/usr/share/mysql/*cnf $(TMP)/usr/share/doc/mariadb-server-5.3/examples/ # $(TMP)/usr/share/mysql/*cnf $(TMP)/usr/share/doc/mariadb-server-5.5/examples/
rm -vf $(TMP)/usr/share/mysql/my-*.cnf \ rm -vf $(TMP)/usr/share/mysql/my-*.cnf \
$(TMP)/usr/share/mysql/config-*.cnf \ $(TMP)/usr/share/mysql/config-*.cnf \
$(TMP)/usr/share/mysql/mi_test_all* \ $(TMP)/usr/share/mysql/mi_test_all* \
...@@ -203,6 +203,9 @@ install: build ...@@ -203,6 +203,9 @@ install: build
install -m 0755 debian/additions/debian-start $(TMP)/etc/mysql/ install -m 0755 debian/additions/debian-start $(TMP)/etc/mysql/
install -m 0755 debian/additions/debian-start.inc.sh $(TMP)/usr/share/mysql/ install -m 0755 debian/additions/debian-start.inc.sh $(TMP)/usr/share/mysql/
install -m 0644 $(builddir)/Docs/INFO_SRC $(TMP)/usr/share/doc/mariadb-server-5.5/INFO_SRC
install -m 0644 $(builddir)/Docs/INFO_BIN $(TMP)/usr/share/doc/mariadb-server-5.5/INFO_BIN
# mariadb-test # mariadb-test
mv $(TMP)/usr/mysql-test $(TMP)/usr/share/mysql mv $(TMP)/usr/mysql-test $(TMP)/usr/share/mysql
......
...@@ -5,6 +5,6 @@ usr/bin ...@@ -5,6 +5,6 @@ usr/bin
usr/sbin usr/sbin
usr/share/man/man8 usr/share/man/man8
usr/share/mysql usr/share/mysql
usr/share/doc/mariadb-server-5.3 usr/share/doc/mariadb-server-5.5
var/run/mysqld var/run/mysqld
var/lib/mysql-upgrade var/lib/mysql-upgrade
...@@ -32,6 +32,8 @@ usr/bin/replace ...@@ -32,6 +32,8 @@ usr/bin/replace
usr/bin/resolve_stack_dump usr/bin/resolve_stack_dump
usr/bin/resolveip usr/bin/resolveip
usr/share/doc/mariadb-server-5.5/mysqld.sym.gz usr/share/doc/mariadb-server-5.5/mysqld.sym.gz
usr/share/doc/mariadb-server-5.5/INFO_SRC
usr/share/doc/mariadb-server-5.5/INFO_BIN
usr/share/lintian/overrides/mariadb-server-5.5 usr/share/lintian/overrides/mariadb-server-5.5
usr/share/man/man1/msql2mysql.1 usr/share/man/man1/msql2mysql.1
usr/share/man/man1/myisamchk.1 usr/share/man/man1/myisamchk.1
......
...@@ -21,7 +21,7 @@ invoke() { ...@@ -21,7 +21,7 @@ invoke() {
fi fi
} }
MYSQL_BOOTSTRAP="/usr/sbin/mysqld --bootstrap --user=mysql --skip-grant-tables --innodb=OFF --pbxt=OFF --default-storage-engine=myisam" MYSQL_BOOTSTRAP="/usr/sbin/mysqld --bootstrap --user=mysql --skip-grant-tables --loose-innodb=OFF --loose-pbxt=OFF --default-storage-engine=myisam"
test_mysql_access() { test_mysql_access() {
mysql --no-defaults -u root -h localhost </dev/null >/dev/null 2>&1 mysql --no-defaults -u root -h localhost </dev/null >/dev/null 2>&1
......
'''apport package hook for mariadb-5.3 '''apport package hook for mariadb-5.5
(c) 2009 Canonical Ltd. (c) 2009 Canonical Ltd.
Author: Mathias Gug <mathias.gug@canonical.com> Author: Mathias Gug <mathias.gug@canonical.com>
...@@ -20,7 +20,7 @@ def _add_my_conf_files(report, filename): ...@@ -20,7 +20,7 @@ def _add_my_conf_files(report, filename):
continue continue
def add_info(report): def add_info(report):
attach_conffiles(report, 'mariadb-server-5.3', conffiles=None) attach_conffiles(report, 'mariadb-server-5.5', conffiles=None)
key = 'Logs' + path_to_key('/var/log/daemon.log') key = 'Logs' + path_to_key('/var/log/daemon.log')
report[key] = "" report[key] = ""
for line in read_file('/var/log/daemon.log').split('\n'): for line in read_file('/var/log/daemon.log').split('\n'):
......
...@@ -191,7 +191,7 @@ install: build ...@@ -191,7 +191,7 @@ install: build
install -m 0755 $(BUILDDIR)/scripts/mysqld_safe $(TMP)/usr/bin/mysqld_safe install -m 0755 $(BUILDDIR)/scripts/mysqld_safe $(TMP)/usr/bin/mysqld_safe
mkdir -p $(TMP)/usr/share/doc/mariadb-server-5.5/examples mkdir -p $(TMP)/usr/share/doc/mariadb-server-5.5/examples
# We have a sane my.cnf, cruft not needed (remove my-*.cnf and config-*.cnf) # We have a sane my.cnf, cruft not needed (remove my-*.cnf and config-*.cnf)
# $(TMP)/usr/share/mysql/*cnf $(TMP)/usr/share/doc/mariadb-server-5.3/examples/ # $(TMP)/usr/share/mysql/*cnf $(TMP)/usr/share/doc/mariadb-server-5.5/examples/
rm -vf $(TMP)/usr/share/mysql/my-*.cnf \ rm -vf $(TMP)/usr/share/mysql/my-*.cnf \
$(TMP)/usr/share/mysql/config-*.cnf \ $(TMP)/usr/share/mysql/config-*.cnf \
$(TMP)/usr/share/mysql/mi_test_all* \ $(TMP)/usr/share/mysql/mi_test_all* \
...@@ -203,6 +203,9 @@ install: build ...@@ -203,6 +203,9 @@ install: build
install -m 0755 debian/additions/debian-start $(TMP)/etc/mysql/ install -m 0755 debian/additions/debian-start $(TMP)/etc/mysql/
install -m 0755 debian/additions/debian-start.inc.sh $(TMP)/usr/share/mysql/ install -m 0755 debian/additions/debian-start.inc.sh $(TMP)/usr/share/mysql/
install -m 0644 $(builddir)/Docs/INFO_SRC $(TMP)/usr/share/doc/mariadb-server-5.5/INFO_SRC
install -m 0644 $(builddir)/Docs/INFO_BIN $(TMP)/usr/share/doc/mariadb-server-5.5/INFO_BIN
# mariadb-test # mariadb-test
mv $(TMP)/usr/mysql-test $(TMP)/usr/share/mysql mv $(TMP)/usr/mysql-test $(TMP)/usr/share/mysql
......
mariadb-server-5.3: command-with-path-in-maintainer-script postinst mariadb-server-5.5: command-with-path-in-maintainer-script postinst
mariadb-server-5.3: possible-bashism-in-maintainer-script postinst:81 'p{("a".."z","A".."Z",0..9)[int(rand(62))]}' mariadb-server-5.5: possible-bashism-in-maintainer-script postinst:81 'p{("a".."z","A".."Z",0..9)[int(rand(62))]}'
mariadb-server-5.3: possible-bashism-in-maintainer-script preinst:33 '${cmd/ */}' mariadb-server-5.5: possible-bashism-in-maintainer-script preinst:33 '${cmd/ */}'
mariadb-server-5.3: statically-linked-binary ./usr/bin/mysql_tzinfo_to_sql mariadb-server-5.5: statically-linked-binary ./usr/bin/mysql_tzinfo_to_sql
mariadb-server-5.3: statically-linked-binary ./usr/sbin/mysqld mariadb-server-5.5: statically-linked-binary ./usr/sbin/mysqld
...@@ -152,7 +152,7 @@ case "${1:-''}" in ...@@ -152,7 +152,7 @@ case "${1:-''}" in
if ! mysqld_status check_dead warn; then if ! mysqld_status check_dead warn; then
log_end_msg 1 log_end_msg 1
log_failure_msg "Please stop MariaDB manually and read /usr/share/doc/mariadb-server-5.3/README.Debian.gz!" log_failure_msg "Please stop MariaDB manually and read /usr/share/doc/mariadb-server-5.5/README.Debian.gz!"
exit -1 exit -1
else else
log_end_msg 0 log_end_msg 0
......
...@@ -49,7 +49,7 @@ stop_server() { ...@@ -49,7 +49,7 @@ stop_server() {
this_version=5.5 this_version=5.5
# Abort if an NDB cluster is in use. # Abort if an NDB cluster is in use.
if egrep -qi -r '^[^#]*ndb.connectstring|^[:space:]*\[[:space:]*ndb_mgmd' /etc/mysql/; then if egrep -qi -r '^[^#]*ndb.connectstring|^[[:space:]]*\[[[:space:]]*ndb_mgmd' /etc/mysql/; then
db_fset mysql-server/no_upgrade_when_using_ndb seen false || true db_fset mysql-server/no_upgrade_when_using_ndb seen false || true
db_input high mysql-server/no_upgrade_when_using_ndb || true db_input high mysql-server/no_upgrade_when_using_ndb || true
db_go db_go
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# Even minor modifications require translation updates and such # Even minor modifications require translation updates and such
# changes should be coordinated with translators and reviewers. # changes should be coordinated with translators and reviewers.
Template: mariadb-server-5.3/really_downgrade Template: mariadb-server-5.5/really_downgrade
Type: boolean Type: boolean
Default: false Default: false
_Description: Really proceed with downgrade? _Description: Really proceed with downgrade?
...@@ -73,7 +73,7 @@ _Description: Unable to set password for the MariaDB "root" user ...@@ -73,7 +73,7 @@ _Description: Unable to set password for the MariaDB "root" user
. .
You should check the account's password after the package installation. You should check the account's password after the package installation.
. .
Please read the /usr/share/doc/mariadb-server-5.3/README.Debian file Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file
for more information. for more information.
Template: mysql-server/password_mismatch Template: mysql-server/password_mismatch
......
...@@ -10,12 +10,13 @@ ...@@ -10,12 +10,13 @@
--- old/mysql-test/mysql-test-run.pl 2009-06-16 14:24:09.000000000 +0200 --- old/mysql-test/mysql-test-run.pl 2009-06-16 14:24:09.000000000 +0200
+++ new/mysql-test/mysql-test-run.pl 2009-07-04 00:03:34.000000000 +0200 +++ new/mysql-test/mysql-test-run.pl 2009-07-04 00:03:34.000000000 +0200
@@ -2717,6 +2717,10 @@ @@ -2717,6 +2717,11 @@
mtr_appendfile_to_file("$sql_dir/mysql_system_tables_data.sql", mtr_appendfile_to_file("$sql_dir/mysql_system_tables_data.sql",
$bootstrap_sql_file); $bootstrap_sql_file);
+ mtr_tofile($bootstrap_sql_file, "-- Debian removed the default privileges on the 'test' database\n"); + mtr_tofile($bootstrap_sql_file, "-- Debian removed the default privileges on the 'test' database\n");
+ mtr_tofile($bootstrap_sql_file, "INSERT INTO mysql.db VALUES ('%','test','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N','Y','Y');\n"); + mtr_tofile($bootstrap_sql_file, "INSERT INTO mysql.db VALUES ('%','test','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N','Y','Y');\n");
+ mtr_tofile($bootstrap_sql_file, "INSERT INTO mysql.db VALUES ('%','test\\_%','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N','Y','Y');\n");
+ +
+ +
# Add test data for timezone - this is just a subset, on a real # Add test data for timezone - this is just a subset, on a real
......
...@@ -194,7 +194,7 @@ msgstr "يجب عليك التحقق من كلمة مرور الحساب عقب ...@@ -194,7 +194,7 @@ msgstr "يجب عليك التحقق من كلمة مرور الحساب عقب
#| "Please read the /usr/share/doc/mysql-server-5.1/README.Debian file for " #| "Please read the /usr/share/doc/mysql-server-5.1/README.Debian file for "
#| "more information." #| "more information."
msgid "" msgid ""
"Please read the /usr/share/doc/mariadb-server-5.3/README.Debian file for " "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
"more information." "more information."
msgstr "" msgstr ""
"الرجاء قراءة الملف /usr/share/doc/mariadb-server-5.5/README.Debian للمزيد من " "الرجاء قراءة الملف /usr/share/doc/mariadb-server-5.5/README.Debian للمزيد من "
......
...@@ -161,7 +161,7 @@ msgstr "" ...@@ -161,7 +161,7 @@ msgstr ""
#. Description #. Description
#: ../mariadb-server-5.5.templates:8001 #: ../mariadb-server-5.5.templates:8001
msgid "" msgid ""
"Please read the /usr/share/doc/mariadb-server-5.3/README.Debian file for " "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
"more information." "more information."
msgstr "" msgstr ""
......
...@@ -197,7 +197,7 @@ msgstr "Po instalaci balíku byste měli heslo ověřit." ...@@ -197,7 +197,7 @@ msgstr "Po instalaci balíku byste měli heslo ověřit."
#| "Please read the /usr/share/doc/mysql-server-5.1/README.Debian file for " #| "Please read the /usr/share/doc/mysql-server-5.1/README.Debian file for "
#| "more information." #| "more information."
msgid "" msgid ""
"Please read the /usr/share/doc/mariadb-server-5.3/README.Debian file for " "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
"more information." "more information."
msgstr "" msgstr ""
"Více informací naleznete v /usr/share/doc/mariadb-server-5.5/README.Debian." "Více informací naleznete v /usr/share/doc/mariadb-server-5.5/README.Debian."
......
...@@ -198,7 +198,7 @@ msgstr "Du b ...@@ -198,7 +198,7 @@ msgstr "Du b
#| "Please read the /usr/share/doc/mysql-server-5.1/README.Debian file for " #| "Please read the /usr/share/doc/mysql-server-5.1/README.Debian file for "
#| "more information." #| "more information."
msgid "" msgid ""
"Please read the /usr/share/doc/mariadb-server-5.3/README.Debian file for " "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
"more information." "more information."
msgstr "" msgstr ""
"Se filen /usr/share/doc/mariadb-server-5.5/README.Debian for yderligere " "Se filen /usr/share/doc/mariadb-server-5.5/README.Debian for yderligere "
......
...@@ -194,7 +194,7 @@ msgstr "" ...@@ -194,7 +194,7 @@ msgstr ""
#| "Please read the /usr/share/doc/mariadb-server-5.1/README.Debian file for " #| "Please read the /usr/share/doc/mariadb-server-5.1/README.Debian file for "
#| "more information." #| "more information."
msgid "" msgid ""
"Please read the /usr/share/doc/mariadb-server-5.3/README.Debian file for " "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
"more information." "more information."
msgstr "" msgstr ""
"Für weitere Informationen lesen Sie /usr/share/doc/mariadb-server-5.1/README." "Für weitere Informationen lesen Sie /usr/share/doc/mariadb-server-5.1/README."
......
...@@ -226,7 +226,7 @@ msgstr "" ...@@ -226,7 +226,7 @@ msgstr ""
#| "Please read the /usr/share/doc/mysql-server-5.1/README.Debian file for " #| "Please read the /usr/share/doc/mysql-server-5.1/README.Debian file for "
#| "more information." #| "more information."
msgid "" msgid ""
"Please read the /usr/share/doc/mariadb-server-5.3/README.Debian file for " "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
"more information." "more information."
msgstr "" msgstr ""
"Consulte /usr/share/doc/mariadb-server-5.5/README.Debian para más " "Consulte /usr/share/doc/mariadb-server-5.5/README.Debian para más "
......
...@@ -188,7 +188,7 @@ msgstr "" ...@@ -188,7 +188,7 @@ msgstr ""
#| "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for " #| "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
#| "more information." #| "more information."
msgid "" msgid ""
"Please read the /usr/share/doc/mariadb-server-5.3/README.Debian file for " "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
"more information." "more information."
msgstr "" msgstr ""
"Mesedez irakurri /usr/share/doc/mariadb-server-5.5/README.Debian fitxategia " "Mesedez irakurri /usr/share/doc/mariadb-server-5.5/README.Debian fitxategia "
......
...@@ -182,7 +182,7 @@ msgstr "" ...@@ -182,7 +182,7 @@ msgstr ""
#| "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for " #| "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
#| "more information." #| "more information."
msgid "" msgid ""
"Please read the /usr/share/doc/mariadb-server-5.3/README.Debian file for " "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
"more information." "more information."
msgstr "" msgstr ""
"Veuillez consulter le fichier /usr/share/doc/mysql-server-5.5/README.Debian " "Veuillez consulter le fichier /usr/share/doc/mysql-server-5.5/README.Debian "
......
...@@ -190,7 +190,7 @@ msgstr "Debería comprobar o contrasinal da conta trala instalación do paquete. ...@@ -190,7 +190,7 @@ msgstr "Debería comprobar o contrasinal da conta trala instalación do paquete.
#| "Please read the /usr/share/doc/mysql-server-5.1/README.Debian file for " #| "Please read the /usr/share/doc/mysql-server-5.1/README.Debian file for "
#| "more information." #| "more information."
msgid "" msgid ""
"Please read the /usr/share/doc/mariadb-server-5.3/README.Debian file for " "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
"more information." "more information."
msgstr "" msgstr ""
"Consulte o ficheiro /usr/share/doc/mariadb-server-5.5/README.Debian para " "Consulte o ficheiro /usr/share/doc/mariadb-server-5.5/README.Debian para "
......
...@@ -181,7 +181,7 @@ msgstr "" ...@@ -181,7 +181,7 @@ msgstr ""
#| "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for " #| "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
#| "more information." #| "more information."
msgid "" msgid ""
"Please read the /usr/share/doc/mariadb-server-5.3/README.Debian file for " "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
"more information." "more information."
msgstr "" msgstr ""
"Per maggiori informazioni si consulti il file /usr/share/doc/mariadb-" "Per maggiori informazioni si consulti il file /usr/share/doc/mariadb-"
......
...@@ -188,7 +188,7 @@ msgstr "" ...@@ -188,7 +188,7 @@ msgstr ""
#| "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for " #| "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
#| "more information." #| "more information."
msgid "" msgid ""
"Please read the /usr/share/doc/mariadb-server-5.3/README.Debian file for " "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
"more information." "more information."
msgstr "" msgstr ""
"詳細は /usr/share/doc/mariadb-server-5.5/README.Debian を参照してください。" "詳細は /usr/share/doc/mariadb-server-5.5/README.Debian を参照してください。"
......
...@@ -206,7 +206,7 @@ msgstr "" ...@@ -206,7 +206,7 @@ msgstr ""
#. Description #. Description
#: ../mariadb-server-5.5.templates:8001 #: ../mariadb-server-5.5.templates:8001
msgid "" msgid ""
"Please read the /usr/share/doc/mariadb-server-5.3/README.Debian file for " "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
"more information." "more information."
msgstr "" msgstr ""
......
...@@ -207,7 +207,7 @@ msgstr "" ...@@ -207,7 +207,7 @@ msgstr ""
#. Description #. Description
#: ../mariadb-server-5.5.templates:8001 #: ../mariadb-server-5.5.templates:8001
msgid "" msgid ""
"Please read the /usr/share/doc/mariadb-server-5.3/README.Debian file for " "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
"more information." "more information."
msgstr "" msgstr ""
......
...@@ -195,7 +195,7 @@ msgstr "" ...@@ -195,7 +195,7 @@ msgstr ""
#| "Please read the /usr/share/doc/mysql-server-5.1/README.Debian file for " #| "Please read the /usr/share/doc/mysql-server-5.1/README.Debian file for "
#| "more information." #| "more information."
msgid "" msgid ""
"Please read the /usr/share/doc/mariadb-server-5.3/README.Debian file for " "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
"more information." "more information."
msgstr "" msgstr ""
"Para mais informação por favor leia o ficheiro /usr/share/doc/mariadb-" "Para mais informação por favor leia o ficheiro /usr/share/doc/mariadb-"
......
...@@ -194,7 +194,7 @@ msgstr "Você deverá checar a senha dessa conta após a instalação deste paco ...@@ -194,7 +194,7 @@ msgstr "Você deverá checar a senha dessa conta após a instalação deste paco
#| "Please read the /usr/share/doc/mysql-server-5.1/README.Debian file for " #| "Please read the /usr/share/doc/mysql-server-5.1/README.Debian file for "
#| "more information." #| "more information."
msgid "" msgid ""
"Please read the /usr/share/doc/mariadb-server-5.3/README.Debian file for " "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
"more information." "more information."
msgstr "" msgstr ""
"Por favor, leia o arquivo /usr/share/doc/mariadb-server-5.5/README.Debian " "Por favor, leia o arquivo /usr/share/doc/mariadb-server-5.5/README.Debian "
......
...@@ -206,7 +206,7 @@ msgstr "" ...@@ -206,7 +206,7 @@ msgstr ""
#. Description #. Description
#: ../mariadb-server-5.5.templates:8001 #: ../mariadb-server-5.5.templates:8001
msgid "" msgid ""
"Please read the /usr/share/doc/mariadb-server-5.3/README.Debian file for " "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
"more information." "more information."
msgstr "" msgstr ""
......
...@@ -189,7 +189,7 @@ msgstr "Проверьте пароль учётной записи после ...@@ -189,7 +189,7 @@ msgstr "Проверьте пароль учётной записи после
#| "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for " #| "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
#| "more information." #| "more information."
msgid "" msgid ""
"Please read the /usr/share/doc/mariadb-server-5.3/README.Debian file for " "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
"more information." "more information."
msgstr "" msgstr ""
"Подробности см. в файле /usr/share/doc/mariadb-server-5.5/README.Debian." "Подробности см. в файле /usr/share/doc/mariadb-server-5.5/README.Debian."
......
...@@ -182,7 +182,7 @@ msgstr "Du bör kontrollera kontots lösenord efter installationen av paketet." ...@@ -182,7 +182,7 @@ msgstr "Du bör kontrollera kontots lösenord efter installationen av paketet."
#| "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for " #| "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
#| "more information." #| "more information."
msgid "" msgid ""
"Please read the /usr/share/doc/mariadb-server-5.3/README.Debian file for " "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
"more information." "more information."
msgstr "" msgstr ""
"Läs filen /usr/share/doc/mariadb-server-5.5/README.Debian för mer " "Läs filen /usr/share/doc/mariadb-server-5.5/README.Debian för mer "
......
...@@ -155,7 +155,7 @@ msgstr "" ...@@ -155,7 +155,7 @@ msgstr ""
#. Description #. Description
#: ../mariadb-server-5.5.templates:8001 #: ../mariadb-server-5.5.templates:8001
msgid "" msgid ""
"Please read the /usr/share/doc/mariadb-server-5.3/README.Debian file for " "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
"more information." "more information."
msgstr "" msgstr ""
......
...@@ -162,7 +162,7 @@ msgstr "" ...@@ -162,7 +162,7 @@ msgstr ""
#. Description #. Description
#: ../mariadb-server-5.5.templates:8001 #: ../mariadb-server-5.5.templates:8001
msgid "" msgid ""
"Please read the /usr/share/doc/mariadb-server-5.3/README.Debian file for " "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
"more information." "more information."
msgstr "" msgstr ""
......
maintainer-script-lacks-debhelper-token debian/mariadb-server-5.3.postinst maintainer-script-lacks-debhelper-token debian/mariadb-server-5.5.postinst
maintainer-script-lacks-debhelper-token debian/mariadb-server-5.3.postrm maintainer-script-lacks-debhelper-token debian/mariadb-server-5.5.postrm
...@@ -173,7 +173,6 @@ my $DEFAULT_SUITES= join(',', qw( ...@@ -173,7 +173,6 @@ my $DEFAULT_SUITES= join(',', qw(
optimizer_unfixed_bugs optimizer_unfixed_bugs
oqgraph oqgraph
parts parts
pbxt
percona percona
perfschema perfschema
plugins plugins
......
...@@ -54,7 +54,6 @@ TRIGGERS TRIGGER_SCHEMA ...@@ -54,7 +54,6 @@ TRIGGERS TRIGGER_SCHEMA
USER_PRIVILEGES GRANTEE USER_PRIVILEGES GRANTEE
USER_STATISTICS USER USER_STATISTICS USER
VIEWS TABLE_SCHEMA VIEWS TABLE_SCHEMA
PBXT_STATISTICS ID
XTRADB_ADMIN_COMMAND result_message XTRADB_ADMIN_COMMAND result_message
SELECT t.table_name, c1.column_name SELECT t.table_name, c1.column_name
FROM information_schema.tables t FROM information_schema.tables t
...@@ -107,5 +106,4 @@ TRIGGERS TRIGGER_SCHEMA ...@@ -107,5 +106,4 @@ TRIGGERS TRIGGER_SCHEMA
USER_PRIVILEGES GRANTEE USER_PRIVILEGES GRANTEE
USER_STATISTICS USER USER_STATISTICS USER
VIEWS TABLE_SCHEMA VIEWS TABLE_SCHEMA
PBXT_STATISTICS ID
XTRADB_ADMIN_COMMAND result_message XTRADB_ADMIN_COMMAND result_message
...@@ -83,7 +83,9 @@ wait/synch/mutex/sql/TABLE_SHARE::LOCK_ha_data ...@@ -83,7 +83,9 @@ wait/synch/mutex/sql/TABLE_SHARE::LOCK_ha_data
wait/synch/mutex/sql/THD::LOCK_thd_data wait/synch/mutex/sql/THD::LOCK_thd_data
wait/synch/mutex/sql/THD::LOCK_wakeup_ready wait/synch/mutex/sql/THD::LOCK_wakeup_ready
wait/synch/mutex/sql/tz_LOCK wait/synch/mutex/sql/tz_LOCK
select name from rwlock_instances group by name; select name from rwlock_instances
where name not in ("wait/synch/rwlock/sql/CRYPTO_dynlock_value::lock")
group by name;
name name
wait/synch/rwlock/aria/TRANSLOG_DESCRIPTOR::open_files_lock wait/synch/rwlock/aria/TRANSLOG_DESCRIPTOR::open_files_lock
wait/synch/rwlock/myisam/MYISAM_SHARE::key_root_lock wait/synch/rwlock/myisam/MYISAM_SHARE::key_root_lock
......
...@@ -19,7 +19,10 @@ use performance_schema; ...@@ -19,7 +19,10 @@ use performance_schema;
# #
select name from mutex_instances where name not rlike '/(DEBUG_SYNC::mutex)$' group by name; select name from mutex_instances where name not rlike '/(DEBUG_SYNC::mutex)$' group by name;
select name from rwlock_instances group by name; # CRYPTO_dynlock_value::lock exists only when building with OpenSSL (not YaSSL).
select name from rwlock_instances
where name not in ("wait/synch/rwlock/sql/CRYPTO_dynlock_value::lock")
group by name;
select name from cond_instances where name not rlike '/(DEBUG_SYNC::cond)$' group by name; select name from cond_instances where name not rlike '/(DEBUG_SYNC::cond)$' group by name;
select event_name from file_instances group by event_name; select event_name from file_instances group by event_name;
select name from threads group by name; select name from threads group by name;
install plugin pam soname 'auth_pam.so'; install plugin pam soname 'auth_pam.so';
create user test_pam identified via pam using 'mariadb_mtr'; create user test_pam identified via pam using 'mariadb_mtr';
create user pam_test;
grant proxy on pam_test to test_pam;
# #
# athentication is successful, challenge/pin are ok # athentication is successful, challenge/pin are ok
# note that current_user() differts from user() # note that current_user() differts from user()
...@@ -19,4 +21,5 @@ Enter: not very secret challenge ...@@ -19,4 +21,5 @@ Enter: not very secret challenge
Now, the magic number! Now, the magic number!
PIN: **** PIN: ****
drop user test_pam; drop user test_pam;
drop user pam_test;
uninstall plugin pam; uninstall plugin pam;
...@@ -9,9 +9,10 @@ if (!$PAM_SETUP_FOR_MTR) { ...@@ -9,9 +9,10 @@ if (!$PAM_SETUP_FOR_MTR) {
skip No pam setup for mtr; skip No pam setup for mtr;
} }
--replace_result .dll .so
eval install plugin pam soname '$AUTH_PAM_SO'; eval install plugin pam soname '$AUTH_PAM_SO';
create user test_pam identified via pam using 'mariadb_mtr'; create user test_pam identified via pam using 'mariadb_mtr';
create user pam_test;
grant proxy on pam_test to test_pam;
let $plugindir=`SELECT @@global.plugin_dir`; let $plugindir=`SELECT @@global.plugin_dir`;
...@@ -42,5 +43,6 @@ EOF ...@@ -42,5 +43,6 @@ EOF
--remove_file $MYSQLTEST_VARDIR/tmp/pam_good.txt --remove_file $MYSQLTEST_VARDIR/tmp/pam_good.txt
--remove_file $MYSQLTEST_VARDIR/tmp/pam_bad.txt --remove_file $MYSQLTEST_VARDIR/tmp/pam_bad.txt
drop user test_pam; drop user test_pam;
drop user pam_test;
uninstall plugin pam; uninstall plugin pam;
Valid values are 'ON' and 'OFF' Valid values are 'ON' and 'OFF'
select @@global.innodb_adaptive_flushing in (0, 1);
@@global.innodb_adaptive_flushing in (0, 1)
1
select @@global.innodb_use_sys_malloc; select @@global.innodb_use_sys_malloc;
@@global.innodb_use_sys_malloc @@global.innodb_use_sys_malloc
1 1
......
...@@ -5,11 +5,14 @@ ...@@ -5,11 +5,14 @@
--source include/have_innodb.inc --source include/have_innodb.inc
# when running with valgring, mtr uses --innodb-use-sys-malloc=0,
# while below we want to see the default value.
--source include/not_valgrind.inc
# #
# show the global and session values; # show the global and session values;
# #
--echo Valid values are 'ON' and 'OFF' --echo Valid values are 'ON' and 'OFF'
select @@global.innodb_adaptive_flushing in (0, 1);
select @@global.innodb_use_sys_malloc; select @@global.innodb_use_sys_malloc;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR --error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.innodb_use_sys_malloc; select @@session.innodb_use_sys_malloc;
......
...@@ -29,13 +29,13 @@ if ($dir_bin eq '/usr/') { ...@@ -29,13 +29,13 @@ if ($dir_bin eq '/usr/') {
# SuSE: "packages/" in the documentation path # SuSE: "packages/" in the documentation path
$dir_docs = glob "$dir_docs/packages/MySQL-server*"; $dir_docs = glob "$dir_docs/packages/MySQL-server*";
} else { } else {
# RedHat: version number in directory name # RedHat/Debian: version number in directory name
$dir_docs = glob "$dir_docs/MySQL-server*"; $dir_docs = glob "$dir_docs/mariadb-server-*";
$dir_docs = glob "$dir_docs/MySQL-server*" unless -d $dir_docs;
} }
} else { } else {
# tar.gz package, Windows, or developer work (in BZR) # tar.gz package, Windows, or developer work (in BZR)
$dir_docs = $dir_bin; $dir_docs = $dir_bin;
$dir_docs =~ s|/lib||;
if(-d "$dir_docs/docs") { if(-d "$dir_docs/docs") {
$dir_docs = "$dir_docs/docs"; # package $dir_docs = "$dir_docs/docs"; # package
} else { } else {
......
...@@ -74,7 +74,7 @@ drop table t1; ...@@ -74,7 +74,7 @@ drop table t1;
# #
--exec echo "this query should not execute;" > $MYSQLTEST_VARDIR/tmp/test.sql --exec echo "this query should not execute;" > $MYSQLTEST_VARDIR/tmp/test.sql
# Handle that openssl gives different error messages from YaSSL. # Handle that openssl gives different error messages from YaSSL.
--replace_regex /error:00000005:lib\(0\):func\(0\):DH lib/ASN: bad other signature confirmation/ --replace_regex /error:00000001:lib\(0\):func\(0\):reason\(1\)/ASN: bad other signature confirmation/
--error 1 --error 1
--exec $MYSQL_TEST --ssl-ca=$MYSQL_TEST_DIR/std_data/untrusted-cacert.pem --max-connect-retries=1 < $MYSQLTEST_VARDIR/tmp/test.sql 2>&1 --exec $MYSQL_TEST --ssl-ca=$MYSQL_TEST_DIR/std_data/untrusted-cacert.pem --max-connect-retries=1 < $MYSQLTEST_VARDIR/tmp/test.sql 2>&1
...@@ -82,7 +82,7 @@ drop table t1; ...@@ -82,7 +82,7 @@ drop table t1;
# Test that we can't open connection to server if we are using # Test that we can't open connection to server if we are using
# a blank ca # a blank ca
# #
--replace_regex /error:00000005:lib\(0\):func\(0\):DH lib/ASN: bad other signature confirmation/ --replace_regex /error:00000001:lib\(0\):func\(0\):reason\(1\)/ASN: bad other signature confirmation/
--error 1 --error 1
--exec $MYSQL_TEST --ssl-ca= --max-connect-retries=1 < $MYSQLTEST_VARDIR/tmp/test.sql 2>&1 --exec $MYSQL_TEST --ssl-ca= --max-connect-retries=1 < $MYSQLTEST_VARDIR/tmp/test.sql 2>&1
...@@ -90,7 +90,7 @@ drop table t1; ...@@ -90,7 +90,7 @@ drop table t1;
# Test that we can't open connection to server if we are using # Test that we can't open connection to server if we are using
# a nonexistent ca file # a nonexistent ca file
# #
--replace_regex /error:00000005:lib\(0\):func\(0\):DH lib/ASN: bad other signature confirmation/ --replace_regex /error:00000001:lib\(0\):func\(0\):reason\(1\)/ASN: bad other signature confirmation/
--error 1 --error 1
--exec $MYSQL_TEST --ssl-ca=nonexisting_file.pem --max-connect-retries=1 < $MYSQLTEST_VARDIR/tmp/test.sql 2>&1 --exec $MYSQL_TEST --ssl-ca=nonexisting_file.pem --max-connect-retries=1 < $MYSQLTEST_VARDIR/tmp/test.sql 2>&1
......
...@@ -74,5 +74,3 @@ SET SESSION transaction_prealloc_size=1024*1024*1024*5; ...@@ -74,5 +74,3 @@ SET SESSION transaction_prealloc_size=1024*1024*1024*5;
SHOW PROCESSLIST; SHOW PROCESSLIST;
--enable_warnings --enable_warnings
SET @@session.transaction_prealloc_size= @def_var;
...@@ -100,14 +100,14 @@ my_bool my_gethwaddr(uchar *to) ...@@ -100,14 +100,14 @@ my_bool my_gethwaddr(uchar *to)
uint i; uint i;
for (i= 0; res && i < ifc.ifc_len / sizeof(ifr[0]); i++) for (i= 0; res && i < ifc.ifc_len / sizeof(ifr[0]); i++)
{ {
#ifdef SIOCGIFHWADDR #ifdef __linux__
if (ioctl(fd, SIOCGIFHWADDR, &ifr[i]) >= 0) if (ioctl(fd, SIOCGIFHWADDR, &ifr[i]) >= 0)
res= memcpy_and_test(to, (uchar *)&ifr[i].ifr_hwaddr.sa_data, res= memcpy_and_test(to, (uchar *)&ifr[i].ifr_hwaddr.sa_data,
ETHER_ADDR_LEN); ETHER_ADDR_LEN);
#else #else
/* /*
A bug in OpenSolaris prevents non-root from getting a mac address: A bug in OpenSolaris used to prevent non-root from getting a mac address:
http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=4720634 {no url. Oracle killed the old OpenSolaris bug database}
Thus, we'll use an alternative method and extract the address from the Thus, we'll use an alternative method and extract the address from the
arp table. arp table.
......
EXTRA_LTLIBRARIES = auth_pam.la libauth_pam.la
pkgplugindir=$(pkglibdir)/plugin
AM_CPPFLAGS = -I$(top_srcdir)/include
pkgplugin_LTLIBRARIES = @plugin_auth_pam_shared_target@
auth_pam_la_LDFLAGS = -module -rpath $(pkgplugindir) -L$(top_builddir)/libservices -lmysqlservices -lpam
auth_pam_la_CFLAGS = -shared -DMYSQL_DYNAMIC_PLUGIN
auth_pam_la_SOURCES = auth_pam.c
noinst_LTLIBRARIES = @plugin_auth_pam_static_target@
libauth_pam_la_LDFLAGS = -lpam
libauth_pam_la_SOURCES = auth_pam.c
EXTRA_DIST = plug.in
MYSQL_PLUGIN(auth_pam, [PAM Authentication Plugin], [PAM Authentication Plugin])
MYSQL_PLUGIN_DYNAMIC(auth_pam, [auth_pam.la])
AC_CHECK_HEADER([security/pam_appl.h],,[MYSQL_PLUGIN_WITHOUT(auth_pam)])
pkgplugindir = $(pkglibdir)/plugin
INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include \
-I$(top_srcdir)/regex -I$(top_srcdir)/sql
EXTRA_LTLIBRARIES = feedback.la libfeedback.la
pkgplugin_LTLIBRARIES = @plugin_feedback_shared_target@
feedback_la_LDFLAGS = -module -rpath $(pkgplugindir) -L$(top_builddir)/libservices -lmysqlservices
feedback_la_CXXFLAGS = -shared -DMYSQL_DYNAMIC_PLUGIN
feedback_la_SOURCES = feedback.cc utils.cc url_base.cc url_http.cc \
sender_thread.cc
noinst_LTLIBRARIES = @plugin_feedback_static_target@
libfeedback_la_SOURCES= feedback.cc utils.cc url_base.cc url_http.cc \
sender_thread.cc
noinst_HEADERS = feedback.h
EXTRA_DIST = CMakeLists.txt plug.in
MYSQL_PLUGIN(feedback,[MariaDB User Feedback Plugin],
[MariaDB User Feedback Plugin])
dnl Although it's not exactly obvious, top-level CMakeLists.txt parses plug.in
dnl files, in particular looking for what the library name should be. It uses
dnl regexp that matches MYSQL_PLUGIN_DYNAMIC or MYSQL_PLUGIN_STATIC, followed
dnl by an open parenthesys, and the plugin name. Having engine name enclosed in
dnl square brackets below causes this regexp to fail and as a result feedback
dnl plugin will not be considered for dynamic builds on Windows.
dnl Unfortunately, feedback cannot be built dynamically on Windows, because it
dnl needs to access server internals that aren't designed for plugin use and
dnl aren't marked with MYSQL_PLUGIN_IMPORT.
MYSQL_PLUGIN_DYNAMIC([feedback], [feedback.la])
ifelse(index(AC_PACKAGE_NAME, [MariaDB]), -1, [], [
dnl MariaDB and MySQL define static plugins differently.
dnl I only support MariaDB here, for now.
MYSQL_PLUGIN_STATIC(feedback, [libfeedback.la])
])
dnl MariaDB before 5.5 needs this define:
MYSQL_PLUGIN_DEFINE(feedback, [WITH_FEEDBACK_PLUGIN])
MYSQL_PLUGIN_ACTIONS(feedback, [
AC_CHECK_HEADERS([netdb.h sys/utsname.h])
])
...@@ -347,9 +347,4 @@ IF(WIN32) ...@@ -347,9 +347,4 @@ IF(WIN32)
mysql_upgrade_service.cc mysql_upgrade_service.cc
COMPONENT Server) COMPONENT Server)
TARGET_LINK_LIBRARIES(mysql_upgrade_service mysys winservice) TARGET_LINK_LIBRARIES(mysql_upgrade_service mysys winservice)
ENDIF() ENDIF(WIN32)
ADD_CUSTOM_TARGET(show-dist-name
COMMAND ${CMAKE_COMMAND} -E echo "${CPACK_PACKAGE_FILE_NAME}"
)
...@@ -1647,7 +1647,7 @@ double Item_sum_avg::val_real() ...@@ -1647,7 +1647,7 @@ double Item_sum_avg::val_real()
my_decimal *Item_sum_avg::val_decimal(my_decimal *val) my_decimal *Item_sum_avg::val_decimal(my_decimal *val)
{ {
my_decimal sum_buff, cnt; my_decimal cnt;
const my_decimal *sum_dec; const my_decimal *sum_dec;
DBUG_ASSERT(fixed == 1); DBUG_ASSERT(fixed == 1);
if (aggr) if (aggr)
......
...@@ -279,7 +279,7 @@ class Loose_scan_opt ...@@ -279,7 +279,7 @@ class Loose_scan_opt
}; };
void advance_sj_state(JOIN *join, const table_map remaining_tables, uint idx, extern void advance_sj_state(JOIN *join, table_map remaining_tables, uint idx,
double *current_record_count, double *current_read_time, double *current_record_count, double *current_read_time,
POSITION *loose_scan_pos); POSITION *loose_scan_pos);
void restore_prev_sj_state(const table_map remaining_tables, void restore_prev_sj_state(const table_map remaining_tables,
......
...@@ -550,7 +550,7 @@ class JOIN_CACHE :public Sql_alloc ...@@ -550,7 +550,7 @@ class JOIN_CACHE :public Sql_alloc
BNL_JOIN_ALG, /* Block Nested Loop Join algorithm */ BNL_JOIN_ALG, /* Block Nested Loop Join algorithm */
BNLH_JOIN_ALG, /* Block Nested Loop Hash Join algorithm */ BNLH_JOIN_ALG, /* Block Nested Loop Hash Join algorithm */
BKA_JOIN_ALG, /* Batched Key Access Join algorithm */ BKA_JOIN_ALG, /* Batched Key Access Join algorithm */
BKAH_JOIN_ALG, /* Batched Key Access with Hash Table Join Algorithm */ BKAH_JOIN_ALG /* Batched Key Access with Hash Table Join Algorithm */
}; };
/* /*
......
...@@ -1688,7 +1688,7 @@ void optimize_wo_join_buffering(JOIN *join, uint first_tab, uint last_tab, ...@@ -1688,7 +1688,7 @@ void optimize_wo_join_buffering(JOIN *join, uint first_tab, uint last_tab,
double *outer_rec_count, double *reopt_cost); double *outer_rec_count, double *reopt_cost);
Item_equal *find_item_equal(COND_EQUAL *cond_equal, Field *field, Item_equal *find_item_equal(COND_EQUAL *cond_equal, Field *field,
bool *inherited_fl); bool *inherited_fl);
bool test_if_ref(COND *root_cond, extern bool test_if_ref(Item *,
Item_field *left_item,Item *right_item); Item_field *left_item,Item *right_item);
inline bool optimizer_flag(THD *thd, uint flag) inline bool optimizer_flag(THD *thd, uint flag)
......
...@@ -252,7 +252,18 @@ IF(WITH_INNODB) ...@@ -252,7 +252,18 @@ IF(WITH_INNODB)
SET(WITH_INNOBASE_STORAGE_ENGINE TRUE) SET(WITH_INNOBASE_STORAGE_ENGINE TRUE)
ENDIF() ENDIF()
# On solaris, reduce symbol visibility, so loader does not mix
# the same symbols from builtin innodb and from shared one.
# Only required for old GCC (3.4.3) that does not support hidden visibility
IF(CMAKE_SYSTEM_NAME MATCHES "SunOS" AND CMAKE_COMPILER_IS_GNUCC
AND NOT HAVE_VISIBILITY_HIDDEN)
SET(LINKER_SCRIPT "-Wl,-M${CMAKE_CURRENT_SOURCE_DIR}/plugin_exports")
ELSE()
SET(LINKER_SCRIPT)
ENDIF()
MYSQL_ADD_PLUGIN(innobase ${INNOBASE_SOURCES} STORAGE_ENGINE MYSQL_ADD_PLUGIN(innobase ${INNOBASE_SOURCES} STORAGE_ENGINE
MODULE_ONLY MODULE_ONLY
MODULE_OUTPUT_NAME ha_innodb MODULE_OUTPUT_NAME ha_innodb
LINK_LIBRARIES ${ZLIB_LIBRARY}) LINK_LIBRARIES ${ZLIB_LIBRARY} ${LINKER_SCRIPT})
{
global:
_mysql_plugin_interface_version_;
_mysql_sizeof_struct_st_plugin_;
_mysql_plugin_declarations_;
thd_wait_service;
my_snprintf_service;
thd_alloc_service;
local:
*;
};
...@@ -76,12 +76,12 @@ MY_ADD_TEST(ma_pagecache_single_1k) ...@@ -76,12 +76,12 @@ MY_ADD_TEST(ma_pagecache_single_1k)
ADD_EXECUTABLE(ma_pagecache_single_8k-t ${ma_pagecache_single_src}) ADD_EXECUTABLE(ma_pagecache_single_8k-t ${ma_pagecache_single_src})
SET_TARGET_PROPERTIES(ma_pagecache_single_8k-t SET_TARGET_PROPERTIES(ma_pagecache_single_8k-t
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=8192") PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=8192 -DBIG")
MY_ADD_TEST(ma_pagecache_single_8k) MY_ADD_TEST(ma_pagecache_single_8k)
ADD_EXECUTABLE(ma_pagecache_single_64k-t ${ma_pagecache_single_src}) ADD_EXECUTABLE(ma_pagecache_single_64k-t ${ma_pagecache_single_src})
SET_TARGET_PROPERTIES(ma_pagecache_single_64k-t SET_TARGET_PROPERTIES(ma_pagecache_single_64k-t
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=65536") PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=65536 -DBIG")
MY_ADD_TEST(ma_pagecache_single_64k) MY_ADD_TEST(ma_pagecache_single_64k)
ADD_EXECUTABLE(ma_pagecache_consist_1k-t ${ma_pagecache_consist_src}) ADD_EXECUTABLE(ma_pagecache_consist_1k-t ${ma_pagecache_consist_src})
......
...@@ -39,6 +39,7 @@ static TRN *trn= &dummy_transaction_object; ...@@ -39,6 +39,7 @@ static TRN *trn= &dummy_transaction_object;
#define LOG_FILE_SIZE (1024L*1024L*1024L + 1024L*1024L*512) #define LOG_FILE_SIZE (1024L*1024L*1024L + 1024L*1024L*512)
#define ITERATIONS 2 #define ITERATIONS 2
#define READONLY 0 #define READONLY 0
#define BIG 1
#else #else
...@@ -48,6 +49,7 @@ static TRN *trn= &dummy_transaction_object; ...@@ -48,6 +49,7 @@ static TRN *trn= &dummy_transaction_object;
#define LOG_FILE_SIZE (1024L*1024L*1024L + 1024L*1024L*512) #define LOG_FILE_SIZE (1024L*1024L*1024L + 1024L*1024L*512)
#define ITERATIONS 2 #define ITERATIONS 2
#define READONLY 1 #define READONLY 1
#undef BIG
#endif /*READONLY_TEST*/ #endif /*READONLY_TEST*/
...@@ -243,6 +245,15 @@ int main(int argc __attribute__((unused)), char *argv[]) ...@@ -243,6 +245,15 @@ int main(int argc __attribute__((unused)), char *argv[])
int rc; int rc;
MY_INIT(argv[0]); MY_INIT(argv[0]);
plan(0); // read configuration (MYTAP_CONFIG)
#ifdef BIG
if (skip_big_tests)
{
plan(1);
ok(1, "skipped as big test");
return 0;
}
#endif
load_defaults("my", load_default_groups, &argc, &argv); load_defaults("my", load_default_groups, &argc, &argv);
get_options(&argc, &argv); get_options(&argc, &argv);
......
...@@ -35,7 +35,7 @@ static const char *default_dbug_option; ...@@ -35,7 +35,7 @@ static const char *default_dbug_option;
#ifdef MULTIFLUSH_TEST #ifdef MULTIFLUSH_TEST
#define LONG_BUFFER_SIZE (16384L) #define LONG_BUFFER_SZ (16384L)
#define MIN_REC_LENGTH 10 #define MIN_REC_LENGTH 10
#define SHOW_DIVIDER 20 #define SHOW_DIVIDER 20
#define ITERATIONS 10000 #define ITERATIONS 10000
...@@ -45,7 +45,7 @@ static const char *default_dbug_option; ...@@ -45,7 +45,7 @@ static const char *default_dbug_option;
#else #else
#define LONG_BUFFER_SIZE (512L*1024L*1024L) #define LONG_BUFFER_SZ (512L*1024L*1024L)
#define MIN_REC_LENGTH 30 #define MIN_REC_LENGTH 30
#define SHOW_DIVIDER 10 #define SHOW_DIVIDER 10
#define ITERATIONS 3 #define ITERATIONS 3
...@@ -55,6 +55,8 @@ static const char *default_dbug_option; ...@@ -55,6 +55,8 @@ static const char *default_dbug_option;
#endif #endif
#define LONG_BUFFER_SIZE (LONG_BUFFER_SZ >> (skip_big_tests ? 4 : 0))
static uint number_of_writers= WRITERS; static uint number_of_writers= WRITERS;
static uint number_of_flushers= FLUSHERS; static uint number_of_flushers= FLUSHERS;
...@@ -270,6 +272,7 @@ int main(int argc __attribute__((unused)), ...@@ -270,6 +272,7 @@ int main(int argc __attribute__((unused)),
int rc; int rc;
MY_INIT(argv[0]); MY_INIT(argv[0]);
// plan read MYTAP_CONFIG so skip_big_tests will be set before using
plan(WRITERS + FLUSHERS + plan(WRITERS + FLUSHERS +
ITERATIONS * WRITERS * 3 + FLUSH_ITERATIONS * FLUSHERS ); ITERATIONS * WRITERS * 3 + FLUSH_ITERATIONS * FLUSHERS );
/* We don't need to do physical syncs in this test */ /* We don't need to do physical syncs in this test */
......
...@@ -22,6 +22,11 @@ ...@@ -22,6 +22,11 @@
# #
# This file is used to make the Windows version # This file is used to make the Windows version
IF(NOT WITH_PBXT_STORAGE_ENGINE)
SET(WITHOUT_PBXT 1)
ENDIF(NOT WITH_PBXT_STORAGE_ENGINE)
SET(PBXT_SOURCES SET(PBXT_SOURCES
src/bsearch_xt.cc src/bsearch_xt.cc
src/bsearch_xt.h src/bsearch_xt.h
......
...@@ -57,7 +57,7 @@ Created 11/5/1995 Heikki Tuuri ...@@ -57,7 +57,7 @@ Created 11/5/1995 Heikki Tuuri
/* prototypes for new functions added to ha_innodb.cc */ /* prototypes for new functions added to ha_innodb.cc */
trx_t* innobase_get_trx(); trx_t* innobase_get_trx();
inline void _increment_page_get_statistics(buf_block_t* block, trx_t* trx) static inline void _increment_page_get_statistics(buf_block_t* block, trx_t* trx)
{ {
ulint block_hash; ulint block_hash;
ulint block_hash_byte; ulint block_hash_byte;
......
...@@ -2293,7 +2293,11 @@ static int do_div_mod(const decimal_t *from1, const decimal_t *from2, ...@@ -2293,7 +2293,11 @@ static int do_div_mod(const decimal_t *from1, const decimal_t *from2,
DBUG_ASSERT(buf0 < to->buf + to->len); DBUG_ASSERT(buf0 < to->buf + to->len);
*buf0=(dec1)guess; *buf0=(dec1)guess;
} }
#ifdef WORKAROUND_GCC_4_3_2_BUG
dcarry= *(volatile dec1 *)start1;
#else
dcarry= *start1; dcarry= *start1;
#endif
start1++; start1++;
} }
if (mod) if (mod)
......
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