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
e3cfdb30
Commit
e3cfdb30
authored
Jun 02, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
into whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-build
parents
adedb05f
23baac6a
Changes
28
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
116 additions
and
68 deletions
+116
-68
BUILD/check-cpu
BUILD/check-cpu
+6
-0
CMakeLists.txt
CMakeLists.txt
+1
-1
Makefile.am
Makefile.am
+2
-0
configure.in
configure.in
+6
-0
libmysql/CMakeLists.txt
libmysql/CMakeLists.txt
+4
-0
mysql-test/include/federated.inc
mysql-test/include/federated.inc
+1
-0
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+1
-2
mysql-test/r/binlog.result
mysql-test/r/binlog.result
+2
-2
mysql-test/r/have_log_bin.require
mysql-test/r/have_log_bin.require
+1
-1
mysql-test/r/mix_innodb_myisam_binlog.result
mysql-test/r/mix_innodb_myisam_binlog.result
+15
-15
mysql-test/t/binlog.test
mysql-test/t/binlog.test
+3
-2
mysql-test/t/blackhole.test
mysql-test/t/blackhole.test
+1
-0
mysql-test/t/ctype_cp932_binlog.test
mysql-test/t/ctype_cp932_binlog.test
+1
-0
mysql-test/t/ctype_cp932_notembedded.test
mysql-test/t/ctype_cp932_notembedded.test
+1
-0
mysql-test/t/ctype_ucs_binlog.test
mysql-test/t/ctype_ucs_binlog.test
+1
-0
mysql-test/t/drop_temp_table.test
mysql-test/t/drop_temp_table.test
+1
-0
mysql-test/t/flush_block_commit_notembedded.test
mysql-test/t/flush_block_commit_notembedded.test
+2
-0
mysql-test/t/insert_select-binlog.test
mysql-test/t/insert_select-binlog.test
+1
-0
mysql-test/t/mix_innodb_myisam_binlog.test
mysql-test/t/mix_innodb_myisam_binlog.test
+11
-11
mysql-test/t/mysqlbinlog-cp932.test
mysql-test/t/mysqlbinlog-cp932.test
+2
-1
mysql-test/t/mysqlbinlog.test
mysql-test/t/mysqlbinlog.test
+2
-0
mysql-test/t/mysqlbinlog2.test
mysql-test/t/mysqlbinlog2.test
+2
-0
mysql-test/t/mysqldump.test
mysql-test/t/mysqldump.test
+3
-0
mysql-test/t/mysqltest.test
mysql-test/t/mysqltest.test
+2
-0
mysql-test/t/sp_trans.test
mysql-test/t/sp_trans.test
+1
-0
mysql-test/t/user_var-binlog.test
mysql-test/t/user_var-binlog.test
+1
-0
scripts/make_binary_distribution.sh
scripts/make_binary_distribution.sh
+40
-32
sql/Makefile.am
sql/Makefile.am
+2
-1
No files found.
BUILD/check-cpu
View file @
e3cfdb30
...
@@ -104,6 +104,12 @@ check_cpu () {
...
@@ -104,6 +104,12 @@ check_cpu () {
*
Athlon
*
64
*
)
*
Athlon
*
64
*
)
cpu_arg
=
"athlon64"
;
cpu_arg
=
"athlon64"
;
;;
;;
*
Turion
*
)
cpu_arg
=
"athlon64"
;
;;
*
Opteron
*
)
cpu_arg
=
"athlon64"
;
;;
*
Athlon
*
)
*
Athlon
*
)
cpu_arg
=
"athlon"
;
cpu_arg
=
"athlon"
;
;;
;;
...
...
CMakeLists.txt
View file @
e3cfdb30
...
@@ -158,7 +158,7 @@ IF(EMBED_MANIFESTS)
...
@@ -158,7 +158,7 @@ IF(EMBED_MANIFESTS)
STRING
(
REGEX MATCH
"MANIFEST:NO"
tmp_manifest
${
CMAKE_EXE_LINKER_FLAGS
}
)
STRING
(
REGEX MATCH
"MANIFEST:NO"
tmp_manifest
${
CMAKE_EXE_LINKER_FLAGS
}
)
IF
(
NOT tmp_manifest
)
IF
(
NOT tmp_manifest
)
SET
(
CMAKE_EXE_LINKER_FLAGS
"
${
CMAKE_EXE_LINKER_FLAGS
}
/MANIFEST:NO"
)
SET
(
CMAKE_EXE_LINKER_FLAGS
"
${
CMAKE_EXE_LINKER_FLAGS
}
/MANIFEST:NO"
)
ENDIF
(
tmp_manifest
)
ENDIF
(
NOT
tmp_manifest
)
# Set the processor architecture.
# Set the processor architecture.
IF
(
CMAKE_GENERATOR MATCHES
"Visual Studio 8 2005 Win64"
)
IF
(
CMAKE_GENERATOR MATCHES
"Visual Studio 8 2005 Win64"
)
SET
(
PROCESSOR_ARCH
"X64"
)
SET
(
PROCESSOR_ARCH
"X64"
)
...
...
Makefile.am
View file @
e3cfdb30
...
@@ -157,6 +157,8 @@ test-bt:
...
@@ -157,6 +157,8 @@ test-bt:
@PERL@ ./mysql-test-run.pl
--force
--comment
=
funcs1_ps
--ps-protocol
--suite
=
funcs_1
@PERL@ ./mysql-test-run.pl
--force
--comment
=
funcs1_ps
--ps-protocol
--suite
=
funcs_1
-
cd
mysql-test
;
MTR_BUILD_THREAD
=
auto
\
-
cd
mysql-test
;
MTR_BUILD_THREAD
=
auto
\
@PERL@ ./mysql-test-run.pl
--force
--comment
=
funcs2
--suite
=
funcs_2
@PERL@ ./mysql-test-run.pl
--force
--comment
=
funcs2
--suite
=
funcs_2
-
cd
mysql-test
;
MTR_BUILD_THREAD
=
auto
\
@PERL@ ./mysql-test-run.pl
--force
--comment
=
rowlock
--suite
=
row_lock
test-bt-debug
:
test-bt-debug
:
-
cd
mysql-test
;
MTR_BUILD_THREAD
=
auto
\
-
cd
mysql-test
;
MTR_BUILD_THREAD
=
auto
\
...
...
configure.in
View file @
e3cfdb30
...
@@ -1736,6 +1736,12 @@ AC_ARG_WITH(client-ldflags,
...
@@ -1736,6 +1736,12 @@ AC_ARG_WITH(client-ldflags,
[
CLIENT_EXTRA_LDFLAGS
=])
[
CLIENT_EXTRA_LDFLAGS
=])
AC_SUBST
(
CLIENT_EXTRA_LDFLAGS
)
AC_SUBST
(
CLIENT_EXTRA_LDFLAGS
)
AC_ARG_WITH
(
mysqld-libs,
[
--with-mysqld-libs
Extra libraries to
link
with
for
mysqld],
[
MYSQLD_EXTRA_LIBS
=
$withval
]
,
[
MYSQLD_EXTRA_LIBS
=])
AC_SUBST
(
MYSQLD_EXTRA_LIBS
)
AC_ARG_WITH
(
lib-ccflags,
AC_ARG_WITH
(
lib-ccflags,
[
--with-lib-ccflags
Extra CC options
for
libraries],
[
--with-lib-ccflags
Extra CC options
for
libraries],
[
LIB_EXTRA_CCFLAGS
=
$withval
]
,
[
LIB_EXTRA_CCFLAGS
=
$withval
]
,
...
...
libmysql/CMakeLists.txt
View file @
e3cfdb30
...
@@ -18,6 +18,10 @@ INCLUDE("${PROJECT_SOURCE_DIR}/win/mysql_manifest.cmake")
...
@@ -18,6 +18,10 @@ INCLUDE("${PROJECT_SOURCE_DIR}/win/mysql_manifest.cmake")
# storage does not work properly in DLLs.
# storage does not work properly in DLLs.
SET
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-DSAFEMALLOC -DSAFE_MUTEX -DUSE_TLS"
)
SET
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-DSAFEMALLOC -DSAFE_MUTEX -DUSE_TLS"
)
SET
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS_DEBUG
}
-DSAFEMALLOC -DSAFE_MUTEX -DUSE_TLS"
)
SET
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS_DEBUG
}
-DSAFEMALLOC -DSAFE_MUTEX -DUSE_TLS"
)
SET
(
CMAKE_CXX_FLAGS_RELEASE
"
${
CMAKE_CXX_FLAGS_RELEASE
}
-DSAFEMALLOC -DSAFE_MUTEX -DUSE_TLS"
)
SET
(
CMAKE_C_FLAGS_RELEASE
"
${
CMAKE_C_FLAGS_RELEASE
}
-DSAFEMALLOC -DSAFE_MUTEX -DUSE_TLS"
)
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"
${
CMAKE_CXX_FLAGS_RELWITHDEBINFO
}
-DSAFEMALLOC -DSAFE_MUTEX -DUSE_TLS"
)
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"
${
CMAKE_C_FLAGS_RELWITHDEBINFO
}
-DSAFEMALLOC -DSAFE_MUTEX -DUSE_TLS"
)
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/include
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/include
${
CMAKE_SOURCE_DIR
}
/zlib
${
CMAKE_SOURCE_DIR
}
/zlib
...
...
mysql-test/include/federated.inc
View file @
e3cfdb30
--
source
include
/
have_log_bin
.
inc
--
source
include
/
not_embedded
.
inc
--
source
include
/
not_embedded
.
inc
--
source
./
include
/
have_federated_db
.
inc
--
source
./
include
/
have_federated_db
.
inc
...
...
mysql-test/mysql-test-run.pl
View file @
e3cfdb30
...
@@ -3740,8 +3740,7 @@ sub mysqld_arguments ($$$$) {
...
@@ -3740,8 +3740,7 @@ sub mysqld_arguments ($$$$) {
"
%s--log-slow-queries=%s-slow.log
",
$prefix
,
$log_base_path
);
"
%s--log-slow-queries=%s-slow.log
",
$prefix
,
$log_base_path
);
# Check if "extra_opt" contains --skip-log-bin
# Check if "extra_opt" contains --skip-log-bin
my
$skip_binlog
=
grep
(
/^--skip-log-bin/
,
@$extra_opt
);
my
$skip_binlog
=
grep
(
/^--skip-log-bin/
,
@$extra_opt
,
@opt_extra_mysqld_opt
);
if
(
$mysqld
->
{'
type
'}
eq
'
master
'
)
if
(
$mysqld
->
{'
type
'}
eq
'
master
'
)
{
{
if
(
!
(
$opt_skip_master_binlog
||
$skip_binlog
)
)
if
(
!
(
$opt_skip_master_binlog
||
$skip_binlog
)
)
...
...
mysql-test/r/binlog.result
View file @
e3cfdb30
...
@@ -17,7 +17,7 @@ master-bin.000001 # Query 1 # use `test`; insert t1 values (5)
...
@@ -17,7 +17,7 @@ master-bin.000001 # Query 1 # use `test`; insert t1 values (5)
master-bin.000001 # Query 1 # use `test`; COMMIT
master-bin.000001 # Query 1 # use `test`; COMMIT
master-bin.000001 # Query 1 # use `test`; BEGIN
master-bin.000001 # Query 1 # use `test`; BEGIN
master-bin.000001 # Query 1 # use `test`; insert t2 values (5)
master-bin.000001 # Query 1 # use `test`; insert t2 values (5)
master-bin.000001 # Xid 1 # COMMIT /* xid=1
2
*/
master-bin.000001 # Xid 1 # COMMIT /* xid=1
3
*/
drop table t1,t2;
drop table t1,t2;
reset master;
reset master;
create table t1 (n int) engine=innodb;
create table t1 (n int) engine=innodb;
...
@@ -128,7 +128,7 @@ master-bin.000001 # Query 1 # use `test`; insert into t1 values(4 + 4)
...
@@ -128,7 +128,7 @@ master-bin.000001 # Query 1 # use `test`; insert into t1 values(4 + 4)
master-bin.000001 # Query 1 # use `test`; insert into t1 values(3 + 4)
master-bin.000001 # Query 1 # use `test`; insert into t1 values(3 + 4)
master-bin.000001 # Query 1 # use `test`; insert into t1 values(2 + 4)
master-bin.000001 # Query 1 # use `test`; insert into t1 values(2 + 4)
master-bin.000001 # Query 1 # use `test`; insert into t1 values(1 + 4)
master-bin.000001 # Query 1 # use `test`; insert into t1 values(1 + 4)
master-bin.000001 # Xid 1 # COMMIT /* xid=
19
*/
master-bin.000001 # Xid 1 # COMMIT /* xid=
20
*/
master-bin.000001 # Rotate 1 # master-bin.000002;pos=4
master-bin.000001 # Rotate 1 # master-bin.000002;pos=4
show binlog events in 'master-bin.000002' from 98;
show binlog events in 'master-bin.000002' from 98;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
...
...
mysql-test/r/have_log_bin.require
View file @
e3cfdb30
Variable_name Value
Variable_name Value
have_
log_bin ON
log_bin ON
mysql-test/r/mix_innodb_myisam_binlog.result
View file @
e3cfdb30
...
@@ -11,7 +11,7 @@ Log_name Pos Event_type Server_id End_log_pos Info
...
@@ -11,7 +11,7 @@ Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 98 Query 1 # use `test`; BEGIN
master-bin.000001 98 Query 1 # use `test`; BEGIN
master-bin.000001 166 Query 1 # use `test`; insert into t1 values(1)
master-bin.000001 166 Query 1 # use `test`; insert into t1 values(1)
master-bin.000001 253 Query 1 # use `test`; insert into t2 select * from t1
master-bin.000001 253 Query 1 # use `test`; insert into t2 select * from t1
master-bin.000001 347 Xid 1 # COMMIT /* xid=
8
*/
master-bin.000001 347 Xid 1 # COMMIT /* xid=
9
*/
delete from t1;
delete from t1;
delete from t2;
delete from t2;
reset master;
reset master;
...
@@ -47,7 +47,7 @@ master-bin.000001 253 Query 1 # use `test`; savepoint my_savepoint
...
@@ -47,7 +47,7 @@ master-bin.000001 253 Query 1 # use `test`; savepoint my_savepoint
master-bin.000001 338 Query 1 # use `test`; insert into t1 values(4)
master-bin.000001 338 Query 1 # use `test`; insert into t1 values(4)
master-bin.000001 425 Query 1 # use `test`; insert into t2 select * from t1
master-bin.000001 425 Query 1 # use `test`; insert into t2 select * from t1
master-bin.000001 519 Query 1 # use `test`; rollback to savepoint my_savepoint
master-bin.000001 519 Query 1 # use `test`; rollback to savepoint my_savepoint
master-bin.000001 616 Xid 1 # COMMIT /* xid=2
5
*/
master-bin.000001 616 Xid 1 # COMMIT /* xid=2
6
*/
delete from t1;
delete from t1;
delete from t2;
delete from t2;
reset master;
reset master;
...
@@ -74,7 +74,7 @@ master-bin.000001 338 Query 1 # use `test`; insert into t1 values(6)
...
@@ -74,7 +74,7 @@ master-bin.000001 338 Query 1 # use `test`; insert into t1 values(6)
master-bin.000001 425 Query 1 # use `test`; insert into t2 select * from t1
master-bin.000001 425 Query 1 # use `test`; insert into t2 select * from t1
master-bin.000001 519 Query 1 # use `test`; rollback to savepoint my_savepoint
master-bin.000001 519 Query 1 # use `test`; rollback to savepoint my_savepoint
master-bin.000001 616 Query 1 # use `test`; insert into t1 values(7)
master-bin.000001 616 Query 1 # use `test`; insert into t1 values(7)
master-bin.000001 703 Xid 1 # COMMIT /* xid=3
7
*/
master-bin.000001 703 Xid 1 # COMMIT /* xid=3
8
*/
delete from t1;
delete from t1;
delete from t2;
delete from t2;
reset master;
reset master;
...
@@ -101,7 +101,7 @@ insert into t2 select * from t1;
...
@@ -101,7 +101,7 @@ insert into t2 select * from t1;
show binlog events from 98;
show binlog events from 98;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 98 Query 1 # use `test`; insert into t1 values(9)
master-bin.000001 98 Query 1 # use `test`; insert into t1 values(9)
master-bin.000001 185 Xid 1 # COMMIT /* xid=6
0
*/
master-bin.000001 185 Xid 1 # COMMIT /* xid=6
1
*/
master-bin.000001 212 Query 1 # use `test`; insert into t2 select * from t1
master-bin.000001 212 Query 1 # use `test`; insert into t2 select * from t1
delete from t1;
delete from t1;
delete from t2;
delete from t2;
...
@@ -112,18 +112,18 @@ insert into t2 select * from t1;
...
@@ -112,18 +112,18 @@ insert into t2 select * from t1;
show binlog events from 98;
show binlog events from 98;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 98 Query 1 # use `test`; insert into t1 values(10)
master-bin.000001 98 Query 1 # use `test`; insert into t1 values(10)
master-bin.000001 186 Xid 1 # COMMIT /* xid=6
6
*/
master-bin.000001 186 Xid 1 # COMMIT /* xid=6
7
*/
master-bin.000001 213 Query 1 # use `test`; insert into t2 select * from t1
master-bin.000001 213 Query 1 # use `test`; insert into t2 select * from t1
insert into t1 values(11);
insert into t1 values(11);
commit;
commit;
show binlog events from 98;
show binlog events from 98;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 98 Query 1 # use `test`; insert into t1 values(10)
master-bin.000001 98 Query 1 # use `test`; insert into t1 values(10)
master-bin.000001 186 Xid 1 # COMMIT /* xid=6
6
*/
master-bin.000001 186 Xid 1 # COMMIT /* xid=6
7
*/
master-bin.000001 213 Query 1 # use `test`; insert into t2 select * from t1
master-bin.000001 213 Query 1 # use `test`; insert into t2 select * from t1
master-bin.000001 307 Query 1 # use `test`; BEGIN
master-bin.000001 307 Query 1 # use `test`; BEGIN
master-bin.000001 375 Query 1 # use `test`; insert into t1 values(11)
master-bin.000001 375 Query 1 # use `test`; insert into t1 values(11)
master-bin.000001 463 Xid 1 # COMMIT /* xid=6
8
*/
master-bin.000001 463 Xid 1 # COMMIT /* xid=6
9
*/
alter table t2 engine=INNODB;
alter table t2 engine=INNODB;
delete from t1;
delete from t1;
delete from t2;
delete from t2;
...
@@ -137,7 +137,7 @@ Log_name Pos Event_type Server_id End_log_pos Info
...
@@ -137,7 +137,7 @@ Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 98 Query 1 # use `test`; BEGIN
master-bin.000001 98 Query 1 # use `test`; BEGIN
master-bin.000001 166 Query 1 # use `test`; insert into t1 values(12)
master-bin.000001 166 Query 1 # use `test`; insert into t1 values(12)
master-bin.000001 254 Query 1 # use `test`; insert into t2 select * from t1
master-bin.000001 254 Query 1 # use `test`; insert into t2 select * from t1
master-bin.000001 348 Xid 1 # COMMIT /* xid=7
8
*/
master-bin.000001 348 Xid 1 # COMMIT /* xid=7
9
*/
delete from t1;
delete from t1;
delete from t2;
delete from t2;
reset master;
reset master;
...
@@ -161,7 +161,7 @@ show binlog events from 98;
...
@@ -161,7 +161,7 @@ show binlog events from 98;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 98 Query 1 # use `test`; BEGIN
master-bin.000001 98 Query 1 # use `test`; BEGIN
master-bin.000001 166 Query 1 # use `test`; insert into t1 values(14)
master-bin.000001 166 Query 1 # use `test`; insert into t1 values(14)
master-bin.000001 254 Xid 1 # COMMIT /* xid=9
4
*/
master-bin.000001 254 Xid 1 # COMMIT /* xid=9
5
*/
delete from t1;
delete from t1;
delete from t2;
delete from t2;
reset master;
reset master;
...
@@ -182,7 +182,7 @@ Log_name Pos Event_type Server_id End_log_pos Info
...
@@ -182,7 +182,7 @@ Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 98 Query 1 # use `test`; BEGIN
master-bin.000001 98 Query 1 # use `test`; BEGIN
master-bin.000001 166 Query 1 # use `test`; insert into t1 values(16)
master-bin.000001 166 Query 1 # use `test`; insert into t1 values(16)
master-bin.000001 254 Query 1 # use `test`; insert into t1 values(18)
master-bin.000001 254 Query 1 # use `test`; insert into t1 values(18)
master-bin.000001 342 Xid 1 # COMMIT /* xid=10
5
*/
master-bin.000001 342 Xid 1 # COMMIT /* xid=10
6
*/
delete from t1;
delete from t1;
delete from t2;
delete from t2;
alter table t2 type=MyISAM;
alter table t2 type=MyISAM;
...
@@ -234,19 +234,19 @@ Log_name Pos Event_type Server_id End_log_pos Info
...
@@ -234,19 +234,19 @@ Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 98 Query 1 # use `test`; BEGIN
master-bin.000001 98 Query 1 # use `test`; BEGIN
master-bin.000001 166 Query 1 # use `test`; insert into t1 values(16)
master-bin.000001 166 Query 1 # use `test`; insert into t1 values(16)
master-bin.000001 254 Query 1 # use `test`; insert into t1 values(18)
master-bin.000001 254 Query 1 # use `test`; insert into t1 values(18)
master-bin.000001 342 Xid 1 # COMMIT /* xid=10
5
*/
master-bin.000001 342 Xid 1 # COMMIT /* xid=10
6
*/
master-bin.000001 369 Query 1 # use `test`; delete from t1
master-bin.000001 369 Query 1 # use `test`; delete from t1
master-bin.000001 446 Xid 1 # COMMIT /* xid=11
4
*/
master-bin.000001 446 Xid 1 # COMMIT /* xid=11
5
*/
master-bin.000001 473 Query 1 # use `test`; delete from t2
master-bin.000001 473 Query 1 # use `test`; delete from t2
master-bin.000001 550 Xid 1 # COMMIT /* xid=11
5
*/
master-bin.000001 550 Xid 1 # COMMIT /* xid=11
6
*/
master-bin.000001 577 Query 1 # use `test`; alter table t2 type=MyISAM
master-bin.000001 577 Query 1 # use `test`; alter table t2 type=MyISAM
master-bin.000001 666 Query 1 # use `test`; insert into t1 values (1)
master-bin.000001 666 Query 1 # use `test`; insert into t1 values (1)
master-bin.000001 754 Xid 1 # COMMIT /* xid=11
7
*/
master-bin.000001 754 Xid 1 # COMMIT /* xid=11
8
*/
master-bin.000001 781 Query 1 # use `test`; insert into t2 values (20)
master-bin.000001 781 Query 1 # use `test`; insert into t2 values (20)
master-bin.000001 870 Query 1 # use `test`; drop table t1,t2
master-bin.000001 870 Query 1 # use `test`; drop table t1,t2
master-bin.000001 949 Query 1 # use `test`; create temporary table ti (a int) engine=innodb
master-bin.000001 949 Query 1 # use `test`; create temporary table ti (a int) engine=innodb
master-bin.000001 1059 Query 1 # use `test`; insert into ti values(1)
master-bin.000001 1059 Query 1 # use `test`; insert into ti values(1)
master-bin.000001 1146 Xid 1 # COMMIT /* xid=13
2
*/
master-bin.000001 1146 Xid 1 # COMMIT /* xid=13
3
*/
master-bin.000001 1173 Query 1 # use `test`; create temporary table t1 (a int) engine=myisam
master-bin.000001 1173 Query 1 # use `test`; create temporary table t1 (a int) engine=myisam
master-bin.000001 1283 Query 1 # use `test`; insert t1 values (1)
master-bin.000001 1283 Query 1 # use `test`; insert t1 values (1)
master-bin.000001 1366 Query 1 # use `test`; create table t0 (n int)
master-bin.000001 1366 Query 1 # use `test`; create table t0 (n int)
...
...
mysql-test/t/binlog.test
View file @
e3cfdb30
#
#
# misc binlogging tests that do not require a slave running
# misc binlogging tests that do not require a slave running
#
#
--
source
include
/
have_log_bin
.
inc
--
source
include
/
not_embedded
.
inc
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_bdb
.
inc
--
source
include
/
have_bdb
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_innodb
.
inc
...
@@ -19,7 +20,7 @@ begin;
...
@@ -19,7 +20,7 @@ begin;
insert
t2
values
(
5
);
insert
t2
values
(
5
);
commit
;
commit
;
# first COMMIT must be Query_log_event, second - Xid_log_event
# first COMMIT must be Query_log_event, second - Xid_log_event
--
replace_result
"xid=2
1"
"xid=12
"
--
replace_result
"xid=2
2"
"xid=13
"
--
replace_column
2
# 5 #
--
replace_column
2
# 5 #
show
binlog
events
from
98
;
show
binlog
events
from
98
;
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
...
@@ -41,7 +42,7 @@ while ($1)
...
@@ -41,7 +42,7 @@ while ($1)
--
enable_query_log
--
enable_query_log
commit
;
commit
;
drop
table
t1
;
drop
table
t1
;
--
replace_result
"xid=3
2"
"xid=19
"
--
replace_result
"xid=3
3"
"xid=20
"
--
replace_column
2
# 5 #
--
replace_column
2
# 5 #
show
binlog
events
in
'master-bin.000001'
from
98
;
show
binlog
events
in
'master-bin.000001'
from
98
;
--
replace_column
2
# 5 #
--
replace_column
2
# 5 #
...
...
mysql-test/t/blackhole.test
View file @
e3cfdb30
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
#
#
--
source
include
/
not_embedded
.
inc
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_blackhole
.
inc
--
source
include
/
have_blackhole
.
inc
--
source
include
/
have_log_bin
.
inc
--
disable_warnings
--
disable_warnings
drop
table
if
exists
t1
,
t2
;
drop
table
if
exists
t1
,
t2
;
...
...
mysql-test/t/ctype_cp932_binlog.test
View file @
e3cfdb30
--
source
include
/
not_embedded
.
inc
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_cp932
.
inc
--
source
include
/
have_cp932
.
inc
--
source
include
/
have_log_bin
.
inc
--
character_set
cp932
--
character_set
cp932
--
disable_warnings
--
disable_warnings
...
...
mysql-test/t/ctype_cp932_notembedded.test
View file @
e3cfdb30
--
source
include
/
not_embedded
.
inc
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_cp932
.
inc
--
source
include
/
have_cp932
.
inc
--
source
include
/
have_log_bin
.
inc
--
character_set
cp932
--
character_set
cp932
--
disable_warnings
--
disable_warnings
...
...
mysql-test/t/ctype_ucs_binlog.test
View file @
e3cfdb30
--
source
include
/
not_embedded
.
inc
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_ucs2
.
inc
--
source
include
/
have_ucs2
.
inc
--
source
include
/
have_log_bin
.
inc
#
#
# Check correct binlogging of UCS2 user variables (BUG#3875)
# Check correct binlogging of UCS2 user variables (BUG#3875)
...
...
mysql-test/t/drop_temp_table.test
View file @
e3cfdb30
# Embedded server doesn't support binlog
# Embedded server doesn't support binlog
--
source
include
/
not_embedded
.
inc
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_log_bin
.
inc
--
disable_warnings
--
disable_warnings
drop
database
if
exists
`drop-temp+table-test`
;
drop
database
if
exists
`drop-temp+table-test`
;
...
...
mysql-test/t/flush_block_commit_notembedded.test
View file @
e3cfdb30
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
# We verify that we did not introduce a deadlock.
# We verify that we did not introduce a deadlock.
# This is intended to mimick how mysqldump and innobackup work.
# This is intended to mimick how mysqldump and innobackup work.
--
source
include
/
have_log_bin
.
inc
# And it requires InnoDB
# And it requires InnoDB
--
source
include
/
not_embedded
.
inc
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_innodb
.
inc
...
...
mysql-test/t/insert_select-binlog.test
View file @
e3cfdb30
# Embedded server doesn't support binlog
# Embedded server doesn't support binlog
--
source
include
/
not_embedded
.
inc
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_log_bin
.
inc
# Check if a partly-completed INSERT SELECT in a MyISAM table goes into the
# Check if a partly-completed INSERT SELECT in a MyISAM table goes into the
# binlog
# binlog
...
...
mysql-test/t/mix_innodb_myisam_binlog.test
View file @
e3cfdb30
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
# slave is always with --skip-innodb in the testsuite. I (Guilhem) however
# slave is always with --skip-innodb in the testsuite. I (Guilhem) however
# did some tests manually on a slave; tables are replicated fine and
# did some tests manually on a slave; tables are replicated fine and
# Exec_Master_Log_Pos advances as expected.
# Exec_Master_Log_Pos advances as expected.
--
source
include
/
have_log_bin
.
inc
# Embedded server doesn't support binlogging
# Embedded server doesn't support binlogging
--
source
include
/
not_embedded
.
inc
--
source
include
/
not_embedded
.
inc
...
@@ -29,7 +29,7 @@ insert into t2 select * from t1;
...
@@ -29,7 +29,7 @@ insert into t2 select * from t1;
commit
;
commit
;
--
replace_column
5
#
--
replace_column
5
#
--
replace_result
"xid=1
4"
"xid=8
"
--
replace_result
"xid=1
5"
"xid=9
"
show
binlog
events
from
98
;
show
binlog
events
from
98
;
delete
from
t1
;
delete
from
t1
;
...
@@ -58,7 +58,7 @@ rollback to savepoint my_savepoint;
...
@@ -58,7 +58,7 @@ rollback to savepoint my_savepoint;
commit
;
commit
;
--
replace_column
5
#
--
replace_column
5
#
--
replace_result
"xid=4
7"
"xid=25
"
--
replace_result
"xid=4
8"
"xid=26
"
show
binlog
events
from
98
;
show
binlog
events
from
98
;
delete
from
t1
;
delete
from
t1
;
...
@@ -76,7 +76,7 @@ commit;
...
@@ -76,7 +76,7 @@ commit;
select
a
from
t1
order
by
a
;
# check that savepoints work :)
select
a
from
t1
order
by
a
;
# check that savepoints work :)
--
replace_column
5
#
--
replace_column
5
#
--
replace_result
"xid=
69"
"xid=37
"
--
replace_result
"xid=
70"
"xid=38
"
show
binlog
events
from
98
;
show
binlog
events
from
98
;
# and when ROLLBACK is not explicit?
# and when ROLLBACK is not explicit?
...
@@ -109,7 +109,7 @@ insert into t1 values(9);
...
@@ -109,7 +109,7 @@ insert into t1 values(9);
insert
into
t2
select
*
from
t1
;
insert
into
t2
select
*
from
t1
;
--
replace_column
5
#
--
replace_column
5
#
--
replace_result
"xid=11
7"
"xid=60
"
--
replace_result
"xid=11
8"
"xid=61
"
show
binlog
events
from
98
;
show
binlog
events
from
98
;
# Check that when the query updat1ng the MyISAM table is the first in the
# Check that when the query updat1ng the MyISAM table is the first in the
...
@@ -122,13 +122,13 @@ insert into t1 values(10); # first make t1 non-empty
...
@@ -122,13 +122,13 @@ insert into t1 values(10); # first make t1 non-empty
begin
;
begin
;
insert
into
t2
select
*
from
t1
;
insert
into
t2
select
*
from
t1
;
--
replace_column
5
#
--
replace_column
5
#
--
replace_result
"xid=13
1"
"xid=66
"
--
replace_result
"xid=13
2"
"xid=67
"
show
binlog
events
from
98
;
show
binlog
events
from
98
;
insert
into
t1
values
(
11
);
insert
into
t1
values
(
11
);
commit
;
commit
;
--
replace_column
5
#
--
replace_column
5
#
--
replace_result
"xid=13
1"
"xid=66"
"xid=134"
"xid=68
"
--
replace_result
"xid=13
2"
"xid=67"
"xid=135"
"xid=69
"
show
binlog
events
from
98
;
show
binlog
events
from
98
;
...
@@ -147,7 +147,7 @@ insert into t2 select * from t1;
...
@@ -147,7 +147,7 @@ insert into t2 select * from t1;
commit
;
commit
;
--
replace_column
5
#
--
replace_column
5
#
--
replace_result
"xid=15
3"
"xid=78
"
--
replace_result
"xid=15
4"
"xid=79
"
show
binlog
events
from
98
;
show
binlog
events
from
98
;
delete
from
t1
;
delete
from
t1
;
...
@@ -175,7 +175,7 @@ rollback to savepoint my_savepoint;
...
@@ -175,7 +175,7 @@ rollback to savepoint my_savepoint;
commit
;
commit
;
--
replace_column
5
#
--
replace_column
5
#
--
replace_result
"xid=18
5"
"xid=94
"
--
replace_result
"xid=18
6"
"xid=95
"
show
binlog
events
from
98
;
show
binlog
events
from
98
;
delete
from
t1
;
delete
from
t1
;
...
@@ -193,7 +193,7 @@ commit;
...
@@ -193,7 +193,7 @@ commit;
select
a
from
t1
order
by
a
;
# check that savepoints work :)
select
a
from
t1
order
by
a
;
# check that savepoints work :)
--
replace_column
5
#
--
replace_column
5
#
--
replace_result
"xid=20
6"
"xid=105
"
--
replace_result
"xid=20
7"
"xid=106
"
show
binlog
events
from
98
;
show
binlog
events
from
98
;
# Test for BUG#5714, where a MyISAM update in the transaction used to
# Test for BUG#5714, where a MyISAM update in the transaction used to
...
@@ -254,7 +254,7 @@ disconnect con2;
...
@@ -254,7 +254,7 @@ disconnect con2;
connection
con3
;
connection
con3
;
select
get_lock
(
"lock1"
,
60
);
select
get_lock
(
"lock1"
,
60
);
--
replace_column
5
#
--
replace_column
5
#
--
replace_result
"xid=20
6"
"xid=105"
"xid=224"
"xid=114"
"xid=227"
"xid=115"
"xid=231"
"xid=117"
"xid=258"
"xid=132
"
--
replace_result
"xid=20
7"
"xid=106"
"xid=225"
"xid=115"
"xid=228"
"xid=116"
"xid=232"
"xid=118"
"xid=259"
"xid=133
"
show
binlog
events
from
98
;
show
binlog
events
from
98
;
do
release_lock
(
"lock1"
);
do
release_lock
(
"lock1"
);
drop
table
t0
,
t2
;
drop
table
t0
,
t2
;
...
...
mysql-test/t/mysqlbinlog-cp932.test
View file @
e3cfdb30
# disabled in embedded until tools running is fixed with embedded
# disabled in embedded until tools running is fixed with embedded
--
source
include
/
not_embedded
.
inc
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_cp932
.
inc
--
source
include
/
have_cp932
.
inc
--
source
include
/
have_log_bin
.
inc
# Bug#16217 (mysql client did not know how not switch its internal charset)
# Bug#16217 (mysql client did not know how not switch its internal charset)
flush
logs
;
flush
logs
;
...
...
mysql-test/t/mysqlbinlog.test
View file @
e3cfdb30
# We are using .opt file since we need small binlog size
# We are using .opt file since we need small binlog size
--
source
include
/
have_log_bin
.
inc
# Embedded server doesn't support binlogging
# Embedded server doesn't support binlogging
--
source
include
/
not_embedded
.
inc
--
source
include
/
not_embedded
.
inc
...
...
mysql-test/t/mysqlbinlog2.test
View file @
e3cfdb30
# Test for the new options --start-datetime, stop-datetime,
# Test for the new options --start-datetime, stop-datetime,
# and a few others.
# and a few others.
--
source
include
/
have_log_bin
.
inc
# Embedded server doesn't support binlogging
# Embedded server doesn't support binlogging
--
source
include
/
not_embedded
.
inc
--
source
include
/
not_embedded
.
inc
...
...
mysql-test/t/mysqldump.test
View file @
e3cfdb30
# Embedded server doesn't support external clients
# Embedded server doesn't support external clients
--
source
include
/
not_embedded
.
inc
--
source
include
/
not_embedded
.
inc
# Binlog is required
--
source
include
/
have_log_bin
.
inc
--
disable_warnings
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
,
`"t"1`
,
t1aa
,
t2
,
t2aa
,
t3
;
DROP
TABLE
IF
EXISTS
t1
,
`"t"1`
,
t1aa
,
t2
,
t2aa
,
t3
;
drop
database
if
exists
mysqldump_test_db
;
drop
database
if
exists
mysqldump_test_db
;
...
...
mysql-test/t/mysqltest.test
View file @
e3cfdb30
--
source
include
/
have_log_bin
.
inc
# This test should work in embedded server after mysqltest is fixed
# This test should work in embedded server after mysqltest is fixed
--
source
include
/
not_embedded
.
inc
--
source
include
/
not_embedded
.
inc
...
...
mysql-test/t/sp_trans.test
View file @
e3cfdb30
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
# tests that require InnoDB...
# tests that require InnoDB...
#
#
--
source
include
/
have_log_bin
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_innodb
.
inc
--
disable_warnings
--
disable_warnings
...
...
mysql-test/t/user_var-binlog.test
View file @
e3cfdb30
# Embedded server does not support binlogging
# Embedded server does not support binlogging
--
source
include
/
not_embedded
.
inc
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_log_bin
.
inc
# Check that user variables are binlogged correctly (BUG#3875)
# Check that user variables are binlogged correctly (BUG#3875)
create
table
t1
(
a
varchar
(
50
));
create
table
t1
(
a
varchar
(
50
));
...
...
scripts/make_binary_distribution.sh
View file @
e3cfdb30
...
@@ -102,11 +102,41 @@ case $system in
...
@@ -102,11 +102,41 @@ case $system in
;;
;;
esac
esac
# This is needed to prefer GNU tar over platform tar because that can't
# always handle long filenames
PATH_DIRS
=
`
echo
$PATH
|
\
sed
-e
's/^:/. /'
-e
's/:$/ ./'
-e
's/::/ . /g'
-e
's/:/ /g'
`
which_1
()
{
for
cmd
do
for
d
in
$PATH_DIRS
do
for
file
in
$d
/
$cmd
do
if
[
-x
$file
-a
!
-d
$file
]
;
then
echo
$file
exit
0
fi
done
done
done
exit
1
}
tar
=
`
which_1 gnutar gtar
`
if
[
"
$?
"
=
"1"
-o
x
"
$tar
"
=
x
""
]
;
then
tar
=
tar
fi
mkdir
$BASE
$BASE
/bin
$BASE
/docs
\
mkdir
$BASE
$BASE
/bin
$BASE
/docs
\
$BASE
/include
$BASE
/lib
$BASE
/support-files
$BASE
/share
$BASE
/scripts
\
$BASE
/include
$BASE
/lib
$BASE
/support-files
$BASE
/share
$BASE
/scripts
\
$BASE
/mysql-test
$BASE
/mysql-test/t
$BASE
/mysql-test/r
\
$BASE
/mysql-test
$BASE
/mysql-test/t
$BASE
/mysql-test/r
\
$BASE
/mysql-test/include
$BASE
/mysql-test/std_data
$BASE
/mysql-test/lib
$BASE
/mysql-test/include
$BASE
/mysql-test/std_data
$BASE
/mysql-test/lib
\
$BASE
/mysql-test/suite
if
[
$BASE_SYSTEM
!=
"netware"
]
;
then
if
[
$BASE_SYSTEM
!=
"netware"
]
;
then
mkdir
$BASE
/share/mysql
$BASE
/tests
$BASE
/sql-bench
$BASE
/man
\
mkdir
$BASE
/share/mysql
$BASE
/tests
$BASE
/sql-bench
$BASE
/man
\
...
@@ -117,8 +147,8 @@ fi
...
@@ -117,8 +147,8 @@ fi
# Copy files if they exists, warn for those that don't.
# Copy files if they exists, warn for those that don't.
# Note that when listing files to copy, we might list the file name
# Note that when listing files to copy, we might list the file name
# twice, once in the directory location where it is buil
d
, and a
# twice, once in the directory location where it is buil
t
, and a
# second time in the ".libs" location. In the case the firs one
# second time in the ".libs" location. In the case the firs
t
one
# is a wrapper script, the second one will overwrite it with the
# is a wrapper script, the second one will overwrite it with the
# binary file.
# binary file.
copyfileto
()
copyfileto
()
...
@@ -274,6 +304,13 @@ $CP mysql-test/t/*.test mysql-test/t/*.imtest \
...
@@ -274,6 +304,13 @@ $CP mysql-test/t/*.test mysql-test/t/*.imtest \
$CP
mysql-test/r/
*
.result mysql-test/r/
*
.require
\
$CP
mysql-test/r/
*
.result mysql-test/r/
*
.require
\
$BASE
/mysql-test/r
$BASE
/mysql-test/r
# Copy the additional suites "as is", they are in flux
$tar
cf - mysql-test/suite |
(
cd
$BASE
;
$tar
xf -
)
# Clean up if we did this from a bk tree
if
[
-d
mysql-test/SCCS
]
;
then
find
$BASE
/mysql-test
-name
SCCS
-print
| xargs
rm
-rf
fi
if
[
$BASE_SYSTEM
!=
"netware"
]
;
then
if
[
$BASE_SYSTEM
!=
"netware"
]
;
then
chmod
a+x
$BASE
/bin/
*
chmod
a+x
$BASE
/bin/
*
copyfileto
$BASE
/bin scripts/
*
copyfileto
$BASE
/bin scripts/
*
...
@@ -374,41 +411,12 @@ if [ x$DEBUG = x1 ] ; then
...
@@ -374,41 +411,12 @@ if [ x$DEBUG = x1 ] ; then
exit
exit
fi
fi
# This is needed to prefere gnu tar instead of tar because tar can't
# always handle long filenames
PATH_DIRS
=
`
echo
$PATH
|
\
sed
-e
's/^:/. /'
-e
's/:$/ ./'
-e
's/::/ . /g'
-e
's/:/ /g'
`
which_1
()
{
for
cmd
do
for
d
in
$PATH_DIRS
do
for
file
in
$d
/
$cmd
do
if
[
-x
$file
-a
!
-d
$file
]
;
then
echo
$file
exit
0
fi
done
done
done
exit
1
}
if
[
$BASE_SYSTEM
!=
"netware"
]
;
then
if
[
$BASE_SYSTEM
!=
"netware"
]
;
then
#
#
# Create the result tar file
# Create the result tar file
#
#
tar
=
`
which_1 gnutar gtar
`
if
[
"
$?
"
=
"1"
-o
x
"
$tar
"
=
x
""
]
;
then
tar
=
tar
fi
echo
"Using
$tar
to create archive"
echo
"Using
$tar
to create archive"
OPT
=
cvf
OPT
=
cvf
...
...
sql/Makefile.am
View file @
e3cfdb30
...
@@ -43,7 +43,8 @@ mysqld_LDADD = @MYSQLD_EXTRA_LDFLAGS@ \
...
@@ -43,7 +43,8 @@ mysqld_LDADD = @MYSQLD_EXTRA_LDFLAGS@ \
@innodb_system_libs@
\
@innodb_system_libs@
\
@ndbcluster_libs@ @ndbcluster_system_libs@
\
@ndbcluster_libs@ @ndbcluster_system_libs@
\
$(LDADD)
$(CXXLDFLAGS)
$(WRAPLIBS)
@LIBDL@
\
$(LDADD)
$(CXXLDFLAGS)
$(WRAPLIBS)
@LIBDL@
\
$(yassl_libs)
$(openssl_libs)
$(yassl_libs)
$(openssl_libs)
\
@MYSQLD_EXTRA_LIBS@
noinst_HEADERS
=
item.h item_func.h item_sum.h item_cmpfunc.h
\
noinst_HEADERS
=
item.h item_func.h item_sum.h item_cmpfunc.h
\
item_strfunc.h item_timefunc.h item_uniq.h
\
item_strfunc.h item_timefunc.h item_uniq.h
\
...
...
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