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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
0e1cdf8d
Commit
0e1cdf8d
authored
Sep 06, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test cleanup in rpl_binlog_grant: XID values are unpredictable
parent
9179dc33
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
mysql-test/suite/rpl/r/rpl_binlog_grant.result
mysql-test/suite/rpl/r/rpl_binlog_grant.result
+3
-3
mysql-test/suite/rpl/t/rpl_binlog_grant.test
mysql-test/suite/rpl/t/rpl_binlog_grant.test
+2
-0
No files found.
mysql-test/suite/rpl/r/rpl_binlog_grant.result
View file @
0e1cdf8d
...
@@ -19,7 +19,7 @@ master-bin.000001 193 Query 1 272 create database d1
...
@@ -19,7 +19,7 @@ master-bin.000001 193 Query 1 272 create database d1
master-bin.000001 272 Query 1 370 use `d1`; create table t (s1 int) engine=innodb
master-bin.000001 272 Query 1 370 use `d1`; create table t (s1 int) engine=innodb
master-bin.000001 370 Query 1 436 use `d1`; BEGIN
master-bin.000001 370 Query 1 436 use `d1`; BEGIN
master-bin.000001 436 Query 1 521 use `d1`; insert into t values (1)
master-bin.000001 436 Query 1 521 use `d1`; insert into t values (1)
master-bin.000001 521 Xid 1 548 COMMIT /*
xid=12
*/
master-bin.000001 521 Xid 1 548 COMMIT /*
XID
*/
master-bin.000001 548 Query 1 633 use `d1`; grant select on t to x@y
master-bin.000001 548 Query 1 633 use `d1`; grant select on t to x@y
start transaction;
start transaction;
insert into t values (2);
insert into t values (2);
...
@@ -40,11 +40,11 @@ master-bin.000001 193 Query 1 272 create database d1
...
@@ -40,11 +40,11 @@ master-bin.000001 193 Query 1 272 create database d1
master-bin.000001 272 Query 1 370 use `d1`; create table t (s1 int) engine=innodb
master-bin.000001 272 Query 1 370 use `d1`; create table t (s1 int) engine=innodb
master-bin.000001 370 Query 1 436 use `d1`; BEGIN
master-bin.000001 370 Query 1 436 use `d1`; BEGIN
master-bin.000001 436 Query 1 521 use `d1`; insert into t values (1)
master-bin.000001 436 Query 1 521 use `d1`; insert into t values (1)
master-bin.000001 521 Xid 1 548 COMMIT /*
xid=12
*/
master-bin.000001 521 Xid 1 548 COMMIT /*
XID
*/
master-bin.000001 548 Query 1 633 use `d1`; grant select on t to x@y
master-bin.000001 548 Query 1 633 use `d1`; grant select on t to x@y
master-bin.000001 633 Query 1 699 use `d1`; BEGIN
master-bin.000001 633 Query 1 699 use `d1`; BEGIN
master-bin.000001 699 Query 1 784 use `d1`; insert into t values (2)
master-bin.000001 699 Query 1 784 use `d1`; insert into t values (2)
master-bin.000001 784 Xid 1 811 COMMIT /*
xid=18
*/
master-bin.000001 784 Xid 1 811 COMMIT /*
XID
*/
master-bin.000001 811 Query 1 899 use `d1`; revoke select on t from x@y
master-bin.000001 811 Query 1 899 use `d1`; revoke select on t from x@y
drop user x@y;
drop user x@y;
drop database d1;
drop database d1;
mysql-test/suite/rpl/t/rpl_binlog_grant.test
View file @
0e1cdf8d
...
@@ -25,6 +25,7 @@ grant select on t to x@y;
...
@@ -25,6 +25,7 @@ grant select on t to x@y;
rollback
;
rollback
;
show
grants
for
x
@
y
;
show
grants
for
x
@
y
;
--
replace_result
$VERSION
VERSION
--
replace_result
$VERSION
VERSION
--
replace_regex
/
\
/
\
*
xid
=.*
\
*
\
//\/* XID *\//
show
binlog
events
;
show
binlog
events
;
start
transaction
;
start
transaction
;
insert
into
t
values
(
2
);
insert
into
t
values
(
2
);
...
@@ -36,6 +37,7 @@ commit;
...
@@ -36,6 +37,7 @@ commit;
select
*
from
t
;
select
*
from
t
;
show
grants
for
x
@
y
;
show
grants
for
x
@
y
;
--
replace_result
$VERSION
VERSION
--
replace_result
$VERSION
VERSION
--
replace_regex
/
\
/
\
*
xid
=.*
\
*
\
//\/* XID *\//
show
binlog
events
;
show
binlog
events
;
drop
user
x
@
y
;
drop
user
x
@
y
;
drop
database
d1
;
drop
database
d1
;
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