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
2d9c3b71
Commit
2d9c3b71
authored
Jan 31, 2008
by
mkindahl@dl145h.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes to make tests pass on pushbuild.
parent
6aacc641
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
17 deletions
+27
-17
mysql-test/include/show_binlog_events2.inc
mysql-test/include/show_binlog_events2.inc
+1
-1
mysql-test/suite/rpl/r/rpl_loaddata_map.result
mysql-test/suite/rpl/r/rpl_loaddata_map.result
+6
-6
mysql-test/suite/rpl/r/rpl_user.result
mysql-test/suite/rpl/r/rpl_user.result
+12
-8
mysql-test/suite/rpl/t/rpl_loaddata_map-master.opt
mysql-test/suite/rpl/t/rpl_loaddata_map-master.opt
+0
-0
mysql-test/suite/rpl/t/rpl_loaddata_map-slave.opt
mysql-test/suite/rpl/t/rpl_loaddata_map-slave.opt
+0
-0
mysql-test/suite/rpl/t/rpl_loaddata_map.test
mysql-test/suite/rpl/t/rpl_loaddata_map.test
+2
-1
mysql-test/suite/rpl/t/rpl_user.test
mysql-test/suite/rpl/t/rpl_user.test
+6
-1
No files found.
mysql-test/include/show_binlog_events2.inc
View file @
2d9c3b71
--
let
$binlog_start
=
98
--
let
$binlog_start
=
106
--
replace_result
$binlog_start
<
binlog_start
>
--
replace_column
2
# 5 #
--
replace_regex
/
\
/
\
*
xid
=.*
\
*
\
//\/* XID *\// /table_id: [0-9]+/table_id: #/
...
...
mysql-test/r/rpl_loaddata_map.result
→
mysql-test/
suite/rpl/
r/rpl_loaddata_map.result
View file @
2d9c3b71
...
...
@@ -12,13 +12,13 @@ load data infile 'MYSQLTEST_VARDIR/tmp/bug30435_5k.txt' into table t2;
select count(*) from t2 /* 5 000 */;
count(*)
5000
show binlog events in 'master-bin.000002' from
98
;
show binlog events in 'master-bin.000002' from
106
;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000002
98
Query 1 # use `test`; create table t2 (id int not null primary key auto_increment)
master-bin.000002 22
1
Begin_load_query 1 # ;file_id=#;block_len=8192
master-bin.000002 84
36
Append_block 1 # ;file_id=#;block_len=8192
master-bin.000002 1665
1
Append_block 1 # ;file_id=#;block_len=7509
master-bin.000002 241
83
Execute_load_query 1 # use `test`; load data infile 'MYSQLTEST_VARDIR/tmp/bug30435_5k.txt' into table t2 ;file_id=#
master-bin.000002
106
Query 1 # use `test`; create table t2 (id int not null primary key auto_increment)
master-bin.000002 22
9
Begin_load_query 1 # ;file_id=#;block_len=8192
master-bin.000002 84
44
Append_block 1 # ;file_id=#;block_len=8192
master-bin.000002 1665
9
Append_block 1 # ;file_id=#;block_len=7509
master-bin.000002 241
91
Execute_load_query 1 # use `test`; load data infile 'MYSQLTEST_VARDIR/tmp/bug30435_5k.txt' into table t2 ;file_id=#
select count(*) from t2 /* 5 000 */;
count(*)
5000
...
...
mysql-test/r/rpl_user.result
→
mysql-test/
suite/rpl/
r/rpl_user.result
View file @
2d9c3b71
...
...
@@ -5,7 +5,12 @@ reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
reset master;
set session sql_log_bin=0;
delete from mysql.user where Host='fakehost';
set session sql_log_bin=1;
set session sql_log_bin=0;
delete from mysql.user where Host='fakehost';
set session sql_log_bin=1;
create user 'foo'@'fakehost';
create user 'foo'@'fakehost', 'bar'@'fakehost';
ERROR HY000: Operation CREATE USER failed for 'foo'@'fakehost'
...
...
@@ -31,12 +36,11 @@ drop user 'not_exist_user1'@'fakehost', 'not_exist_user2'@'fakehost';
ERROR HY000: Operation DROP USER failed for 'not_exist_user1'@'fakehost','not_exist_user2'@'fakehost'
select Host,User from mysql.user where Host='fakehost';
Host User
show binlog events from
98
;
show binlog events from
<binlog_start>
;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 98 Query 1 # use `test`; delete from mysql.user where Host='fakehost'
master-bin.000001 205 Query 1 # use `test`; create user 'foo'@'fakehost'
master-bin.000001 296 Query 1 # use `test`; create user 'foo'@'fakehost', 'bar'@'fakehost'
master-bin.000001 405 Query 1 # use `test`; rename user 'foo'@'fakehost' to 'foofoo'@'fakehost'
master-bin.000001 519 Query 1 # use `test`; rename user 'not_exist_user1'@'fakehost' to 'foobar'@'fakehost', 'bar'@'fakehost' to 'barbar'@'fakehost'
master-bin.000001 686 Query 1 # use `test`; drop user 'foofoo'@'fakehost'
master-bin.000001 778 Query 1 # use `test`; drop user 'not_exist_user1'@'fakehost', 'barbar'@'fakehost'
master-bin.000001 # Query # # use `test`; create user 'foo'@'fakehost'
master-bin.000001 # Query # # use `test`; create user 'foo'@'fakehost', 'bar'@'fakehost'
master-bin.000001 # Query # # use `test`; rename user 'foo'@'fakehost' to 'foofoo'@'fakehost'
master-bin.000001 # Query # # use `test`; rename user 'not_exist_user1'@'fakehost' to 'foobar'@'fakehost', 'bar'@'fakehost' to 'barbar'@'fakehost'
master-bin.000001 # Query # # use `test`; drop user 'foofoo'@'fakehost'
master-bin.000001 # Query # # use `test`; drop user 'not_exist_user1'@'fakehost', 'barbar'@'fakehost'
mysql-test/t/rpl_loaddata_map-master.opt
→
mysql-test/
suite/rpl/
t/rpl_loaddata_map-master.opt
View file @
2d9c3b71
File moved
mysql-test/t/rpl_loaddata_map-slave.opt
→
mysql-test/
suite/rpl/
t/rpl_loaddata_map-slave.opt
View file @
2d9c3b71
File moved
mysql-test/t/rpl_loaddata_map.test
→
mysql-test/
suite/rpl/
t/rpl_loaddata_map.test
View file @
2d9c3b71
...
...
@@ -9,6 +9,7 @@
source
include
/
master
-
slave
.
inc
;
source
include
/
have_innodb
.
inc
;
source
include
/
have_binlog_format_mixed_or_statement
.
inc
;
--
disable_query_log
let
$rows
=
5000
;
...
...
@@ -33,7 +34,7 @@ eval load data infile '$MYSQLTEST_VARDIR/tmp/bug30435_5k.txt' into table t2;
select
count
(
*
)
from
t2
/* 5 000 */
;
# the binglog will show fragmented Append_block events
--
let
$binlog_start
=
98
--
let
$binlog_start
=
106
--
replace_column
5
#
--
replace_regex
/
\
/
\
*
xid
=.*
\
*
\
//\/* XID *\// /file_id=[0-9]+/file_id=#/
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
...
...
mysql-test/t/rpl_user.test
→
mysql-test/
suite/rpl/
t/rpl_user.test
View file @
2d9c3b71
...
...
@@ -7,8 +7,13 @@ reset master;
#
# remove all users will be used in the test
#
set
session
sql_log_bin
=
0
;
delete
from
mysql
.
user
where
Host
=
'fakehost'
;
sync_slave_with_master
;
set
session
sql_log_bin
=
1
;
connection
slave
;
set
session
sql_log_bin
=
0
;
delete
from
mysql
.
user
where
Host
=
'fakehost'
;
set
session
sql_log_bin
=
1
;
#
# Test create user
...
...
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