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
8877fe73
Commit
8877fe73
authored
Feb 08, 2012
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
4d1c7b79
9f9ecc06
Changes
71
Hide whitespace changes
Inline
Side-by-side
Showing
71 changed files
with
179 additions
and
175 deletions
+179
-175
client/CMakeLists.txt
client/CMakeLists.txt
+2
-1
cmake/libutils.cmake
cmake/libutils.cmake
+18
-7
cmake/os/SunOS.cmake
cmake/os/SunOS.cmake
+5
-0
cmake/plugin.cmake
cmake/plugin.cmake
+1
-0
cmake/readline.cmake
cmake/readline.cmake
+6
-4
debian/additions/mariadb.cnf
debian/additions/mariadb.cnf
+0
-19
debian/additions/my.cnf
debian/additions/my.cnf
+13
-0
debian/dist/Debian/mariadb-server-5.5.dirs
debian/dist/Debian/mariadb-server-5.5.dirs
+1
-1
debian/dist/Debian/mariadb-server-5.5.files
debian/dist/Debian/mariadb-server-5.5.files
+2
-0
debian/dist/Debian/mariadb-server-5.5.postinst
debian/dist/Debian/mariadb-server-5.5.postinst
+1
-1
debian/dist/Debian/rules
debian/dist/Debian/rules
+5
-2
debian/dist/Ubuntu/mariadb-server-5.5.dirs
debian/dist/Ubuntu/mariadb-server-5.5.dirs
+1
-1
debian/dist/Ubuntu/mariadb-server-5.5.files
debian/dist/Ubuntu/mariadb-server-5.5.files
+2
-0
debian/dist/Ubuntu/mariadb-server-5.5.postinst
debian/dist/Ubuntu/mariadb-server-5.5.postinst
+1
-1
debian/dist/Ubuntu/mariadb-server-5.5.py
debian/dist/Ubuntu/mariadb-server-5.5.py
+2
-2
debian/dist/Ubuntu/rules
debian/dist/Ubuntu/rules
+4
-1
debian/mariadb-server-5.5.lintian-overrides
debian/mariadb-server-5.5.lintian-overrides
+5
-5
debian/mariadb-server-5.5.mysql.init
debian/mariadb-server-5.5.mysql.init
+1
-1
debian/mariadb-server-5.5.preinst
debian/mariadb-server-5.5.preinst
+1
-1
debian/mariadb-server-5.5.templates
debian/mariadb-server-5.5.templates
+2
-2
debian/patches/50_mysql-test__db_test.dpatch
debian/patches/50_mysql-test__db_test.dpatch
+2
-1
debian/po/ar.po
debian/po/ar.po
+1
-1
debian/po/ca.po
debian/po/ca.po
+1
-1
debian/po/cs.po
debian/po/cs.po
+1
-1
debian/po/da.po
debian/po/da.po
+1
-1
debian/po/de.po
debian/po/de.po
+1
-1
debian/po/es.po
debian/po/es.po
+1
-1
debian/po/eu.po
debian/po/eu.po
+1
-1
debian/po/fr.po
debian/po/fr.po
+1
-1
debian/po/gl.po
debian/po/gl.po
+1
-1
debian/po/it.po
debian/po/it.po
+1
-1
debian/po/ja.po
debian/po/ja.po
+1
-1
debian/po/nb.po
debian/po/nb.po
+1
-1
debian/po/nl.po
debian/po/nl.po
+1
-1
debian/po/pt.po
debian/po/pt.po
+1
-1
debian/po/pt_BR.po
debian/po/pt_BR.po
+1
-1
debian/po/ro.po
debian/po/ro.po
+1
-1
debian/po/ru.po
debian/po/ru.po
+1
-1
debian/po/sv.po
debian/po/sv.po
+1
-1
debian/po/templates.pot
debian/po/templates.pot
+1
-1
debian/po/tr.po
debian/po/tr.po
+1
-1
debian/source.lintian-overrides
debian/source.lintian-overrides
+2
-2
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+0
-1
mysql-test/r/information_schema-big.result
mysql-test/r/information_schema-big.result
+0
-2
mysql-test/suite/perfschema/r/all_instances.result
mysql-test/suite/perfschema/r/all_instances.result
+3
-1
mysql-test/suite/perfschema/t/all_instances.test
mysql-test/suite/perfschema/t/all_instances.test
+4
-1
mysql-test/suite/plugins/r/pam.result
mysql-test/suite/plugins/r/pam.result
+3
-0
mysql-test/suite/plugins/t/pam.test
mysql-test/suite/plugins/t/pam.test
+3
-1
mysql-test/suite/sys_vars/r/innodb_use_sys_malloc_basic.result
...-test/suite/sys_vars/r/innodb_use_sys_malloc_basic.result
+0
-3
mysql-test/suite/sys_vars/t/innodb_use_sys_malloc_basic.test
mysql-test/suite/sys_vars/t/innodb_use_sys_malloc_basic.test
+4
-1
mysql-test/t/file_contents.test
mysql-test/t/file_contents.test
+3
-3
mysql-test/t/openssl_1.test
mysql-test/t/openssl_1.test
+3
-3
mysql-test/t/variables-big.test
mysql-test/t/variables-big.test
+0
-2
mysys/my_gethwaddr.c
mysys/my_gethwaddr.c
+3
-3
plugin/auth_pam/Makefile.am
plugin/auth_pam/Makefile.am
+0
-16
plugin/auth_pam/plug.in
plugin/auth_pam/plug.in
+0
-4
plugin/feedback/Makefile.am
plugin/feedback/Makefile.am
+0
-18
plugin/feedback/plug.in
plugin/feedback/plug.in
+0
-28
sql/CMakeLists.txt
sql/CMakeLists.txt
+1
-6
sql/item_sum.cc
sql/item_sum.cc
+1
-1
sql/opt_subselect.h
sql/opt_subselect.h
+1
-1
sql/sql_join_cache.h
sql/sql_join_cache.h
+1
-1
sql/sql_select.h
sql/sql_select.h
+1
-1
storage/innobase/CMakeLists.txt
storage/innobase/CMakeLists.txt
+12
-1
storage/innobase/plugin_exports
storage/innobase/plugin_exports
+11
-0
storage/maria/unittest/CMakeLists.txt
storage/maria/unittest/CMakeLists.txt
+2
-2
storage/maria/unittest/ma_test_loghandler_multigroup-t.c
storage/maria/unittest/ma_test_loghandler_multigroup-t.c
+11
-0
storage/maria/unittest/ma_test_loghandler_multithread-t.c
storage/maria/unittest/ma_test_loghandler_multithread-t.c
+5
-2
storage/pbxt/CMakeLists.txt
storage/pbxt/CMakeLists.txt
+5
-0
storage/xtradb/buf/buf0buf.c
storage/xtradb/buf/buf0buf.c
+1
-1
strings/decimal.c
strings/decimal.c
+4
-0
No files found.
client/CMakeLists.txt
View file @
8877fe73
...
...
@@ -31,12 +31,13 @@ MYSQL_ADD_EXECUTABLE(mysql completion_hash.cc mysql.cc readline.cc
TARGET_LINK_LIBRARIES
(
mysql mysqlclient
)
IF
(
UNIX
)
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
)
MYSQL_ADD_EXECUTABLE
(
mysqltest mysqltest.cc COMPONENT Test
)
SET_SOURCE_FILES_PROPERTIES
(
mysqltest.cc PROPERTIES COMPILE_FLAGS
"-DTHREADS"
)
TARGET_LINK_LIBRARIES
(
mysqltest mysqlclient regex
)
SET_TARGET_PROPERTIES
(
mysqltest PROPERTIES ENABLE_EXPORTS TRUE
)
MYSQL_ADD_EXECUTABLE
(
mysqlcheck mysqlcheck.c
)
...
...
cmake/libutils.cmake
View file @
8877fe73
...
...
@@ -305,16 +305,27 @@ FUNCTION(GET_DEPENDEND_OS_LIBS target result)
ENDFUNCTION
()
MACRO
(
RESTRICT_SYMBOL_EXPORTS target
)
SET
(
VISIBILITY_HIDDEN_FLAG
)
IF
(
CMAKE_COMPILER_IS_GNUCXX AND UNIX
)
CHECK_C_COMPILER_FLAG
(
"-fvisibility=hidden"
HAVE_VISIBILITY_HIDDEN
)
IF
(
HAVE_VISIBILITY_HIDDEN
)
GET_TARGET_PROPERTY
(
COMPILE_FLAGS
${
target
}
COMPILE_FLAGS
)
IF
(
NOT COMPILE_FLAGS
)
# Avoid COMPILE_FLAGS-NOTFOUND
SET
(
COMPILE_FLAGS
)
ENDIF
()
SET_TARGET_PROPERTIES
(
${
target
}
PROPERTIES
COMPILE_FLAGS
"
${
COMPILE_FLAGS
}
-fvisibility=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
)
IF
(
NOT COMPILE_FLAGS
)
# Avoid COMPILE_FLAGS-NOTFOUND
SET
(
COMPILE_FLAGS
)
ENDIF
()
SET_TARGET_PROPERTIES
(
${
target
}
PROPERTIES
COMPILE_FLAGS
"
${
COMPILE_FLAGS
}
${
VISIBILITY_HIDDEN_FLAG
}
"
)
ENDIF
()
ENDMACRO
()
cmake/os/SunOS.cmake
View file @
8877fe73
...
...
@@ -93,3 +93,8 @@ IF(CMAKE_COMPILER_IS_GNUCC AND CMAKE_SIZEOF_VOID_P EQUAL 4
ENDIF
()
ENDIF
()
ENDIF
()
IF
(
CMAKE_CXX_COMPILER_ID MATCHES
"SunPro"
)
# Unnamed structs and unions
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-features=extensions"
)
ENDIF
()
cmake/plugin.cmake
View file @
8877fe73
...
...
@@ -136,6 +136,7 @@ MACRO(MYSQL_ADD_PLUGIN)
SET_TARGET_PROPERTIES
(
${
target
}
PROPERTIES COMPILE_DEFINITONS
"MYSQL_SERVER"
)
DTRACE_INSTRUMENT
(
${
target
}
)
ADD_DEPENDENCIES
(
${
target
}
GenError
${
ARG_DEPENDENCIES
}
)
RESTRICT_SYMBOL_EXPORTS
(
${
target
}
)
IF
(
WITH_EMBEDDED_SERVER
)
# Embedded library should contain PIC code and be linkable
# to shared libraries (on systems that need PIC)
...
...
cmake/readline.cmake
View file @
8877fe73
...
...
@@ -116,7 +116,6 @@ MACRO (MYSQL_USE_BUNDLED_READLINE)
SET
(
HAVE_HIST_ENTRY
)
SET
(
READLINE_INCLUDE_DIR
${
CMAKE_SOURCE_DIR
}
/cmd-line-utils
)
SET
(
READLINE_LIBRARY readline
)
FIND_CURSES
()
ADD_SUBDIRECTORY
(
${
CMAKE_SOURCE_DIR
}
/cmd-line-utils/readline
)
ENDMACRO
()
...
...
@@ -126,10 +125,10 @@ MACRO (MYSQL_FIND_SYSTEM_READLINE)
FIND_LIBRARY
(
READLINE_LIBRARY NAMES readline
)
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
)
SET
(
CMAKE_REQUIRED_LIBRARIES
${
READLINE_LIBRARY
}
)
SET
(
CMAKE_REQUIRED_LIBRARIES
${
READLINE_LIBRARY
}
${
CURSES_LIBRARY
}
)
CHECK_CXX_SOURCE_COMPILES
(
"
#include <stdio.h>
#include <readline/readline.h>
...
...
@@ -175,6 +174,7 @@ MACRO (MYSQL_FIND_SYSTEM_READLINE)
ENDIF
(
READLINE_V5
)
ENDIF
(
NEW_READLINE_INTERFACE
)
ENDIF
()
SET
(
CMAKE_REQUIRES_LIBRARIES
)
ENDMACRO
()
MACRO
(
MYSQL_FIND_SYSTEM_LIBEDIT
)
...
...
@@ -197,6 +197,7 @@ MACRO (MYSQL_FIND_SYSTEM_LIBEDIT)
LIBEDIT_INTERFACE
)
SET
(
USE_LIBEDIT_INTERFACE
${
LIBEDIT_INTERFACE
}
)
ENDIF
()
SET
(
CMAKE_REQUIRES_LIBRARIES
)
ENDMACRO
()
...
...
@@ -204,6 +205,7 @@ MACRO (MYSQL_CHECK_READLINE)
IF
(
NOT WIN32
)
MYSQL_CHECK_MULTIBYTE
()
SET
(
WITH_READLINE OFF CACHE BOOL
"Use bundled readline"
)
FIND_CURSES
()
IF
(
WITH_READLINE
)
MYSQL_USE_BUNDLED_READLINE
()
...
...
@@ -217,7 +219,7 @@ MACRO (MYSQL_CHECK_READLINE)
ENDIF
()
ENDIF
()
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
)
ENDMACRO
()
debian/additions/mariadb.cnf
View file @
8877fe73
...
...
@@ -15,22 +15,3 @@
#default-collation = utf8_general_ci
#character_set_server = utf8
#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
debian/additions/my.cnf
View file @
8877fe73
...
...
@@ -48,15 +48,28 @@ bind-address = 127.0.0.1
#
# * Fine Tuning
#
max_connections = 100
connect_timeout = 5
wait_timeout = 600
max_allowed_packet = 16M
thread_cache_size = 128
sort_buffer_size = 4M
bulk_insert_buffer_size = 16M
tmp_table_size = 32M
max_heap_table_size = 32M
#
# * MyISAM
#
# 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.
myisam_recover = BACKUP
key_buffer_size = 128M
#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
#
...
...
debian/dist/Debian/mariadb-server-5.5.dirs
View file @
8877fe73
...
...
@@ -5,6 +5,6 @@ usr/bin
usr/sbin
usr/share/man/man8
usr/share/mysql
usr/share/doc/mariadb-server-5.
3
usr/share/doc/mariadb-server-5.
5
var/run/mysqld
var/lib/mysql-upgrade
debian/dist/Debian/mariadb-server-5.5.files
View file @
8877fe73
...
...
@@ -30,6 +30,8 @@ usr/bin/replace
usr/bin/resolve_stack_dump
usr/bin/resolveip
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/man/man1/msql2mysql.1
usr/share/man/man1/myisamchk.1
...
...
debian/dist/Debian/mariadb-server-5.5.postinst
View file @
8877fe73
...
...
@@ -21,7 +21,7 @@ invoke() {
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
()
{
mysql
--no-defaults
-u
root
-h
localhost </dev/null
>
/dev/null 2>&1
...
...
debian/dist/Debian/rules
View file @
8877fe73
...
...
@@ -66,7 +66,7 @@ endif
( test -d $(builddir) || mkdir $(builddir) ) && cd $(builddir) && \
sh -c 'PATH=$${MYSQL_BUILD_PATH:-"/bin:/usr/bin:/usr/local/bin"} \
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++} \
CXXFLAGS=$${MYSQL_BUILD_CXXFLAGS:-"-O2 -fno-omit-frame-pointer -g -pipe -Wall -Wno-uninitialized"} \
cmake .. \
...
...
@@ -191,7 +191,7 @@ install: build
install -m 0755 $(BUILDDIR)/scripts/mysqld_safe $(TMP)/usr/bin/mysqld_safe
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)
# $(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 \
$(TMP)/usr/share/mysql/config-*.cnf \
$(TMP)/usr/share/mysql/mi_test_all* \
...
...
@@ -203,6 +203,9 @@ install: build
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 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
mv $(TMP)/usr/mysql-test $(TMP)/usr/share/mysql
...
...
debian/dist/Ubuntu/mariadb-server-5.5.dirs
View file @
8877fe73
...
...
@@ -5,6 +5,6 @@ usr/bin
usr/sbin
usr/share/man/man8
usr/share/mysql
usr/share/doc/mariadb-server-5.
3
usr/share/doc/mariadb-server-5.
5
var/run/mysqld
var/lib/mysql-upgrade
debian/dist/Ubuntu/mariadb-server-5.5.files
View file @
8877fe73
...
...
@@ -32,6 +32,8 @@ usr/bin/replace
usr/bin/resolve_stack_dump
usr/bin/resolveip
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/man/man1/msql2mysql.1
usr/share/man/man1/myisamchk.1
...
...
debian/dist/Ubuntu/mariadb-server-5.5.postinst
View file @
8877fe73
...
...
@@ -21,7 +21,7 @@ invoke() {
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
()
{
mysql
--no-defaults
-u
root
-h
localhost </dev/null
>
/dev/null 2>&1
...
...
debian/dist/Ubuntu/mariadb-server-5.5.py
View file @
8877fe73
'''apport package hook for mariadb-5.
3
'''apport package hook for mariadb-5.
5
(c) 2009 Canonical Ltd.
Author: Mathias Gug <mathias.gug@canonical.com>
...
...
@@ -20,7 +20,7 @@ def _add_my_conf_files(report, filename):
continue
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'
)
report
[
key
]
=
""
for
line
in
read_file
(
'/var/log/daemon.log'
).
split
(
'
\
n
'
):
...
...
debian/dist/Ubuntu/rules
View file @
8877fe73
...
...
@@ -191,7 +191,7 @@ install: build
install -m 0755 $(BUILDDIR)/scripts/mysqld_safe $(TMP)/usr/bin/mysqld_safe
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)
# $(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 \
$(TMP)/usr/share/mysql/config-*.cnf \
$(TMP)/usr/share/mysql/mi_test_all* \
...
...
@@ -203,6 +203,9 @@ install: build
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 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
mv $(TMP)/usr/mysql-test $(TMP)/usr/share/mysql
...
...
debian/mariadb-server-5.5.lintian-overrides
View file @
8877fe73
mariadb-server-5.
3
: 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.
3
: possible-bashism-in-maintainer-script preinst:33 '${cmd/ */}'
mariadb-server-5.
3
: statically-linked-binary ./usr/bin/mysql_tzinfo_to_sql
mariadb-server-5.
3
: statically-linked-binary ./usr/sbin/mysqld
mariadb-server-5.
5
: command-with-path-in-maintainer-script postinst
mariadb-server-5.
5
: 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 preinst:33 '${cmd/ */}'
mariadb-server-5.
5
: statically-linked-binary ./usr/bin/mysql_tzinfo_to_sql
mariadb-server-5.
5
: statically-linked-binary ./usr/sbin/mysqld
debian/mariadb-server-5.5.mysql.init
View file @
8877fe73
...
...
@@ -152,7 +152,7 @@ case "${1:-''}" in
if
!
mysqld_status check_dead warn
;
then
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
else
log_end_msg 0
...
...
debian/mariadb-server-5.5.preinst
View file @
8877fe73
...
...
@@ -49,7 +49,7 @@ stop_server() {
this_version
=
5.5
# 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_input high mysql-server/no_upgrade_when_using_ndb
||
true
db_go
...
...
debian/mariadb-server-5.5.templates
View file @
8877fe73
...
...
@@ -7,7 +7,7 @@
# Even minor modifications require translation updates and such
# changes should be coordinated with translators and reviewers.
Template: mariadb-server-5.
3
/really_downgrade
Template: mariadb-server-5.
5
/really_downgrade
Type: boolean
Default: false
_Description: Really proceed with downgrade?
...
...
@@ -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.
.
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.
Template: mysql-server/password_mismatch
...
...
debian/patches/50_mysql-test__db_test.dpatch
View file @
8877fe73
...
...
@@ -10,12 +10,13 @@
--- 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
@@ -2717,6 +2717,1
0
@@
@@ -2717,6 +2717,1
1
@@
mtr_appendfile_to_file("$sql_dir/mysql_system_tables_data.sql",
$bootstrap_sql_file);
+ 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");
+
+
# Add test data for timezone - this is just a subset, on a real
...
...
debian/po/ar.po
View file @
8877fe73
...
...
@@ -194,7 +194,7 @@ msgstr "يجب عليك التحقق من كلمة مرور الحساب عقب
#| "Please read the /usr/share/doc/mysql-server-5.1/README.Debian file for "
#| "more information."
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."
msgstr ""
"الرجاء قراءة الملف /usr/share/doc/mariadb-server-5.5/README.Debian للمزيد من "
...
...
debian/po/ca.po
View file @
8877fe73
...
...
@@ -161,7 +161,7 @@ msgstr ""
#. Description
#: ../mariadb-server-5.5.templates:8001
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."
msgstr ""
...
...
debian/po/cs.po
View file @
8877fe73
...
...
@@ -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 "
#| "more information."
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."
msgstr ""
"Více informací naleznete v /usr/share/doc/mariadb-server-5.5/README.Debian."
...
...
debian/po/da.po
View file @
8877fe73
...
...
@@ -198,7 +198,7 @@ msgstr "Du b
#| "Please read the /usr/share/doc/mysql-server-5.1/README.Debian file for "
#| "more information."
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."
msgstr ""
"Se filen /usr/share/doc/mariadb-server-5.5/README.Debian for yderligere "
...
...
debian/po/de.po
View file @
8877fe73
...
...
@@ -194,7 +194,7 @@ msgstr ""
#| "Please read the /usr/share/doc/mariadb-server-5.1/README.Debian file for "
#| "more information."
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."
msgstr ""
"Für weitere Informationen lesen Sie /usr/share/doc/mariadb-server-5.1/README."
...
...
debian/po/es.po
View file @
8877fe73
...
...
@@ -226,7 +226,7 @@ msgstr ""
#| "Please read the /usr/share/doc/mysql-server-5.1/README.Debian file for "
#| "more information."
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."
msgstr ""
"Consulte /usr/share/doc/mariadb-server-5.5/README.Debian para más "
...
...
debian/po/eu.po
View file @
8877fe73
...
...
@@ -188,7 +188,7 @@ msgstr ""
#| "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
#| "more information."
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."
msgstr ""
"Mesedez irakurri /usr/share/doc/mariadb-server-5.5/README.Debian fitxategia "
...
...
debian/po/fr.po
View file @
8877fe73
...
...
@@ -182,7 +182,7 @@ msgstr ""
#| "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
#| "more information."
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."
msgstr ""
"Veuillez consulter le fichier /usr/share/doc/mysql-server-5.5/README.Debian "
...
...
debian/po/gl.po
View file @
8877fe73
...
...
@@ -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 "
#| "more information."
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."
msgstr ""
"Consulte o ficheiro /usr/share/doc/mariadb-server-5.5/README.Debian para "
...
...
debian/po/it.po
View file @
8877fe73
...
...
@@ -181,7 +181,7 @@ msgstr ""
#| "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
#| "more information."
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."
msgstr ""
"Per maggiori informazioni si consulti il file /usr/share/doc/mariadb-"
...
...
debian/po/ja.po
View file @
8877fe73
...
...
@@ -188,7 +188,7 @@ msgstr ""
#| "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
#| "more information."
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."
msgstr ""
"詳細は /usr/share/doc/mariadb-server-5.5/README.Debian を参照してください。"
...
...
debian/po/nb.po
View file @
8877fe73
...
...
@@ -206,7 +206,7 @@ msgstr ""
#. Description
#: ../mariadb-server-5.5.templates:8001
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."
msgstr ""
...
...
debian/po/nl.po
View file @
8877fe73
...
...
@@ -207,7 +207,7 @@ msgstr ""
#. Description
#: ../mariadb-server-5.5.templates:8001
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."
msgstr ""
...
...
debian/po/pt.po
View file @
8877fe73
...
...
@@ -195,7 +195,7 @@ msgstr ""
#| "Please read the /usr/share/doc/mysql-server-5.1/README.Debian file for "
#| "more information."
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."
msgstr ""
"Para mais informação por favor leia o ficheiro /usr/share/doc/mariadb-"
...
...
debian/po/pt_BR.po
View file @
8877fe73
...
...
@@ -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 "
#| "more information."
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."
msgstr ""
"Por favor, leia o arquivo /usr/share/doc/mariadb-server-5.5/README.Debian "
...
...
debian/po/ro.po
View file @
8877fe73
...
...
@@ -206,7 +206,7 @@ msgstr ""
#. Description
#: ../mariadb-server-5.5.templates:8001
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."
msgstr ""
...
...
debian/po/ru.po
View file @
8877fe73
...
...
@@ -189,7 +189,7 @@ msgstr "Проверьте пароль учётной записи после
#| "Please read the /usr/share/doc/mariadb-server-5.5/README.Debian file for "
#| "more information."
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."
msgstr ""
"Подробности см. в файле /usr/share/doc/mariadb-server-5.5/README.Debian."
...
...
debian/po/sv.po
View file @
8877fe73
...
...
@@ -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 "
#| "more information."
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."
msgstr ""
"Läs filen /usr/share/doc/mariadb-server-5.5/README.Debian för mer "
...
...
debian/po/templates.pot
View file @
8877fe73
...
...
@@ -155,7 +155,7 @@ msgstr ""
#. Description
#: ../mariadb-server-5.5.templates:8001
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."
msgstr ""
...
...
debian/po/tr.po
View file @
8877fe73
...
...
@@ -162,7 +162,7 @@ msgstr ""
#. Description
#: ../mariadb-server-5.5.templates:8001
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."
msgstr ""
...
...
debian/source.lintian-overrides
View file @
8877fe73
maintainer-script-lacks-debhelper-token debian/mariadb-server-5.
3
.postinst
maintainer-script-lacks-debhelper-token debian/mariadb-server-5.
3
.postrm
maintainer-script-lacks-debhelper-token debian/mariadb-server-5.
5
.postinst
maintainer-script-lacks-debhelper-token debian/mariadb-server-5.
5
.postrm
mysql-test/mysql-test-run.pl
View file @
8877fe73
...
...
@@ -173,7 +173,6 @@ my $DEFAULT_SUITES= join(',', qw(
optimizer_unfixed_bugs
oqgraph
parts
pbxt
percona
perfschema
plugins
...
...
mysql-test/r/information_schema-big.result
View file @
8877fe73
...
...
@@ -54,7 +54,6 @@ TRIGGERS TRIGGER_SCHEMA
USER_PRIVILEGES GRANTEE
USER_STATISTICS USER
VIEWS TABLE_SCHEMA
PBXT_STATISTICS ID
XTRADB_ADMIN_COMMAND result_message
SELECT t.table_name, c1.column_name
FROM information_schema.tables t
...
...
@@ -107,5 +106,4 @@ TRIGGERS TRIGGER_SCHEMA
USER_PRIVILEGES GRANTEE
USER_STATISTICS USER
VIEWS TABLE_SCHEMA
PBXT_STATISTICS ID
XTRADB_ADMIN_COMMAND result_message
mysql-test/suite/perfschema/r/all_instances.result
View file @
8877fe73
...
...
@@ -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_wakeup_ready
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
wait/synch/rwlock/aria/TRANSLOG_DESCRIPTOR::open_files_lock
wait/synch/rwlock/myisam/MYISAM_SHARE::key_root_lock
...
...
mysql-test/suite/perfschema/t/all_instances.test
View file @
8877fe73
...
...
@@ -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
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
event_name
from
file_instances
group
by
event_name
;
select
name
from
threads
group
by
name
;
mysql-test/suite/plugins/r/pam.result
View file @
8877fe73
install plugin pam soname 'auth_pam.so';
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
# note that current_user() differts from user()
...
...
@@ -19,4 +21,5 @@ Enter: not very secret challenge
Now, the magic number!
PIN: ****
drop user test_pam;
drop user pam_test;
uninstall plugin pam;
mysql-test/suite/plugins/t/pam.test
View file @
8877fe73
...
...
@@ -9,9 +9,10 @@ if (!$PAM_SETUP_FOR_MTR) {
skip
No
pam
setup
for
mtr
;
}
--
replace_result
.
dll
.
so
eval
install
plugin
pam
soname
'$AUTH_PAM_SO'
;
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`
;
...
...
@@ -42,5 +43,6 @@ EOF
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
pam_good
.
txt
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
pam_bad
.
txt
drop
user
test_pam
;
drop
user
pam_test
;
uninstall
plugin
pam
;
mysql-test/suite/sys_vars/r/innodb_use_sys_malloc_basic.result
View file @
8877fe73
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;
@@global.innodb_use_sys_malloc
1
...
...
mysql-test/suite/sys_vars/t/innodb_use_sys_malloc_basic.test
View file @
8877fe73
...
...
@@ -5,11 +5,14 @@
--
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;
#
--
echo
Valid
values
are
'ON'
and
'OFF'
select
@@
global
.
innodb_adaptive_flushing
in
(
0
,
1
);
select
@@
global
.
innodb_use_sys_malloc
;
--
error
ER_INCORRECT_GLOBAL_LOCAL_VAR
select
@@
session
.
innodb_use_sys_malloc
;
...
...
mysql-test/t/file_contents.test
View file @
8877fe73
...
...
@@ -29,13 +29,13 @@ if ($dir_bin eq '/usr/') {
# SuSE: "packages/" in the documentation path
$dir_docs
=
glob
"
$dir_docs
/packages/MySQL-server*"
;
}
else
{
# RedHat: version number in directory name
$dir_docs
=
glob
"
$dir_docs
/MySQL-server*"
;
# RedHat/Debian: version number in directory name
$dir_docs
=
glob
"
$dir_docs
/mariadb-server-*"
;
$dir_docs
=
glob
"
$dir_docs
/MySQL-server*"
unless
-
d
$dir_docs
;
}
}
else
{
# tar.gz package, Windows, or developer work (in BZR)
$dir_docs
=
$dir_bin
;
$dir_docs
=~
s
|/
lib
||
;
if
(
-
d
"
$dir_docs
/docs"
)
{
$dir_docs
=
"
$dir_docs
/docs"
;
# package
}
else
{
...
...
mysql-test/t/openssl_1.test
View file @
8877fe73
...
...
@@ -74,7 +74,7 @@ drop table t1;
#
--
exec
echo
"this query should not execute;"
>
$MYSQLTEST_VARDIR
/
tmp
/
test
.
sql
# Handle that openssl gives different error messages from YaSSL.
--
replace_regex
/
error
:
0000000
5
:
lib
\
(
0
\
)
:
func
\
(
0
\
)
:
DH
lib
/
ASN
:
bad
other
signature
confirmation
/
--
replace_regex
/
error
:
0000000
1
:
lib
\
(
0
\
)
:
func
\
(
0
\
)
:
reason
\
(
1
\
)
/
ASN
:
bad
other
signature
confirmation
/
--
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
...
...
@@ -82,7 +82,7 @@ drop table t1;
# Test that we can't open connection to server if we are using
# a blank ca
#
--
replace_regex
/
error
:
0000000
5
:
lib
\
(
0
\
)
:
func
\
(
0
\
)
:
DH
lib
/
ASN
:
bad
other
signature
confirmation
/
--
replace_regex
/
error
:
0000000
1
:
lib
\
(
0
\
)
:
func
\
(
0
\
)
:
reason
\
(
1
\
)
/
ASN
:
bad
other
signature
confirmation
/
--
error
1
--
exec
$MYSQL_TEST
--
ssl
-
ca
=
--
max
-
connect
-
retries
=
1
<
$MYSQLTEST_VARDIR
/
tmp
/
test
.
sql
2
>&
1
...
...
@@ -90,7 +90,7 @@ drop table t1;
# Test that we can't open connection to server if we are using
# a nonexistent ca file
#
--
replace_regex
/
error
:
0000000
5
:
lib
\
(
0
\
)
:
func
\
(
0
\
)
:
DH
lib
/
ASN
:
bad
other
signature
confirmation
/
--
replace_regex
/
error
:
0000000
1
:
lib
\
(
0
\
)
:
func
\
(
0
\
)
:
reason
\
(
1
\
)
/
ASN
:
bad
other
signature
confirmation
/
--
error
1
--
exec
$MYSQL_TEST
--
ssl
-
ca
=
nonexisting_file
.
pem
--
max
-
connect
-
retries
=
1
<
$MYSQLTEST_VARDIR
/
tmp
/
test
.
sql
2
>&
1
...
...
mysql-test/t/variables-big.test
View file @
8877fe73
...
...
@@ -74,5 +74,3 @@ SET SESSION transaction_prealloc_size=1024*1024*1024*5;
SHOW
PROCESSLIST
;
--
enable_warnings
SET
@@
session
.
transaction_prealloc_size
=
@
def_var
;
mysys/my_gethwaddr.c
View file @
8877fe73
...
...
@@ -100,14 +100,14 @@ my_bool my_gethwaddr(uchar *to)
uint
i
;
for
(
i
=
0
;
res
&&
i
<
ifc
.
ifc_len
/
sizeof
(
ifr
[
0
]);
i
++
)
{
#ifdef
SIOCGIFHWADDR
#ifdef
__linux__
if
(
ioctl
(
fd
,
SIOCGIFHWADDR
,
&
ifr
[
i
])
>=
0
)
res
=
memcpy_and_test
(
to
,
(
uchar
*
)
&
ifr
[
i
].
ifr_hwaddr
.
sa_data
,
ETHER_ADDR_LEN
);
#else
/*
A bug in OpenSolaris
prevents
non-root from getting a mac address:
http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=4720634
A bug in OpenSolaris
used to prevent
non-root from getting a mac address:
{no url. Oracle killed the old OpenSolaris bug database}
Thus, we'll use an alternative method and extract the address from the
arp table.
...
...
plugin/auth_pam/Makefile.am
deleted
100644 → 0
View file @
4d1c7b79
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
plugin/auth_pam/plug.in
deleted
100644 → 0
View file @
4d1c7b79
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)])
plugin/feedback/Makefile.am
deleted
100644 → 0
View file @
4d1c7b79
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
plugin/feedback/plug.in
deleted
100644 → 0
View file @
4d1c7b79
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])
])
sql/CMakeLists.txt
View file @
8877fe73
...
...
@@ -347,9 +347,4 @@ IF(WIN32)
mysql_upgrade_service.cc
COMPONENT Server
)
TARGET_LINK_LIBRARIES
(
mysql_upgrade_service mysys winservice
)
ENDIF
()
ADD_CUSTOM_TARGET
(
show-dist-name
COMMAND
${
CMAKE_COMMAND
}
-E echo
"
${
CPACK_PACKAGE_FILE_NAME
}
"
)
ENDIF
(
WIN32
)
sql/item_sum.cc
View file @
8877fe73
...
...
@@ -1647,7 +1647,7 @@ double Item_sum_avg::val_real()
my_decimal
*
Item_sum_avg
::
val_decimal
(
my_decimal
*
val
)
{
my_decimal
sum_buff
,
cnt
;
my_decimal
cnt
;
const
my_decimal
*
sum_dec
;
DBUG_ASSERT
(
fixed
==
1
);
if
(
aggr
)
...
...
sql/opt_subselect.h
View file @
8877fe73
...
...
@@ -279,7 +279,7 @@ public:
};
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
,
POSITION
*
loose_scan_pos
);
void
restore_prev_sj_state
(
const
table_map
remaining_tables
,
...
...
sql/sql_join_cache.h
View file @
8877fe73
...
...
@@ -550,7 +550,7 @@ public:
BNL_JOIN_ALG
,
/* Block Nested Loop Join algorithm */
BNLH_JOIN_ALG
,
/* Block Nested Loop Hash 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 */
};
/*
...
...
sql/sql_select.h
View file @
8877fe73
...
...
@@ -1688,7 +1688,7 @@ void optimize_wo_join_buffering(JOIN *join, uint first_tab, uint last_tab,
double
*
outer_rec_count
,
double
*
reopt_cost
);
Item_equal
*
find_item_equal
(
COND_EQUAL
*
cond_equal
,
Field
*
field
,
bool
*
inherited_fl
);
bool
test_if_ref
(
COND
*
root_cond
,
extern
bool
test_if_ref
(
Item
*
,
Item_field
*
left_item
,
Item
*
right_item
);
inline
bool
optimizer_flag
(
THD
*
thd
,
uint
flag
)
...
...
storage/innobase/CMakeLists.txt
View file @
8877fe73
...
...
@@ -252,7 +252,18 @@ IF(WITH_INNODB)
SET
(
WITH_INNOBASE_STORAGE_ENGINE TRUE
)
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
MODULE_ONLY
MODULE_OUTPUT_NAME ha_innodb
LINK_LIBRARIES
${
ZLIB_LIBRARY
}
)
LINK_LIBRARIES
${
ZLIB_LIBRARY
}
${
LINKER_SCRIPT
}
)
storage/innobase/plugin_exports
0 → 100644
View file @
8877fe73
{
global:
_mysql_plugin_interface_version_;
_mysql_sizeof_struct_st_plugin_;
_mysql_plugin_declarations_;
thd_wait_service;
my_snprintf_service;
thd_alloc_service;
local:
*;
};
storage/maria/unittest/CMakeLists.txt
View file @
8877fe73
...
...
@@ -76,12 +76,12 @@ MY_ADD_TEST(ma_pagecache_single_1k)
ADD_EXECUTABLE
(
ma_pagecache_single_8k-t
${
ma_pagecache_single_src
}
)
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
)
ADD_EXECUTABLE
(
ma_pagecache_single_64k-t
${
ma_pagecache_single_src
}
)
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
)
ADD_EXECUTABLE
(
ma_pagecache_consist_1k-t
${
ma_pagecache_consist_src
}
)
...
...
storage/maria/unittest/ma_test_loghandler_multigroup-t.c
View file @
8877fe73
...
...
@@ -39,6 +39,7 @@ static TRN *trn= &dummy_transaction_object;
#define LOG_FILE_SIZE (1024L*1024L*1024L + 1024L*1024L*512)
#define ITERATIONS 2
#define READONLY 0
#define BIG 1
#else
...
...
@@ -48,6 +49,7 @@ static TRN *trn= &dummy_transaction_object;
#define LOG_FILE_SIZE (1024L*1024L*1024L + 1024L*1024L*512)
#define ITERATIONS 2
#define READONLY 1
#undef BIG
#endif
/*READONLY_TEST*/
...
...
@@ -243,6 +245,15 @@ int main(int argc __attribute__((unused)), char *argv[])
int
rc
;
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
);
get_options
(
&
argc
,
&
argv
);
...
...
storage/maria/unittest/ma_test_loghandler_multithread-t.c
View file @
8877fe73
...
...
@@ -35,7 +35,7 @@ static const char *default_dbug_option;
#ifdef MULTIFLUSH_TEST
#define LONG_BUFFER_S
IZE
(16384L)
#define LONG_BUFFER_S
Z
(16384L)
#define MIN_REC_LENGTH 10
#define SHOW_DIVIDER 20
#define ITERATIONS 10000
...
...
@@ -45,7 +45,7 @@ static const char *default_dbug_option;
#else
#define LONG_BUFFER_S
IZE
(512L*1024L*1024L)
#define LONG_BUFFER_S
Z
(512L*1024L*1024L)
#define MIN_REC_LENGTH 30
#define SHOW_DIVIDER 10
#define ITERATIONS 3
...
...
@@ -55,6 +55,8 @@ static const char *default_dbug_option;
#endif
#define LONG_BUFFER_SIZE (LONG_BUFFER_SZ >> (skip_big_tests ? 4 : 0))
static
uint
number_of_writers
=
WRITERS
;
static
uint
number_of_flushers
=
FLUSHERS
;
...
...
@@ -270,6 +272,7 @@ int main(int argc __attribute__((unused)),
int
rc
;
MY_INIT
(
argv
[
0
]);
// plan read MYTAP_CONFIG so skip_big_tests will be set before using
plan
(
WRITERS
+
FLUSHERS
+
ITERATIONS
*
WRITERS
*
3
+
FLUSH_ITERATIONS
*
FLUSHERS
);
/* We don't need to do physical syncs in this test */
...
...
storage/pbxt/CMakeLists.txt
View file @
8877fe73
...
...
@@ -22,6 +22,11 @@
#
# 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
src/bsearch_xt.cc
src/bsearch_xt.h
...
...
storage/xtradb/buf/buf0buf.c
View file @
8877fe73
...
...
@@ -57,7 +57,7 @@ Created 11/5/1995 Heikki Tuuri
/* prototypes for new functions added to ha_innodb.cc */
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_byte
;
...
...
strings/decimal.c
View file @
8877fe73
...
...
@@ -2293,7 +2293,11 @@ static int do_div_mod(const decimal_t *from1, const decimal_t *from2,
DBUG_ASSERT
(
buf0
<
to
->
buf
+
to
->
len
);
*
buf0
=
(
dec1
)
guess
;
}
#ifdef WORKAROUND_GCC_4_3_2_BUG
dcarry
=
*
(
volatile
dec1
*
)
start1
;
#else
dcarry
=
*
start1
;
#endif
start1
++
;
}
if
(
mod
)
...
...
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