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
9a632549
Commit
9a632549
authored
Aug 24, 2009
by
Alfranio Correia
Browse files
Options
Browse Files
Download
Plain Diff
auto-merge mysql-5.1-bugteam (local) --> mysql-5.1-bugteam
parents
8b0ec014
78585a25
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
10 deletions
+20
-10
mysql-test/suite/rpl/r/rpl_concurrency_error.result
mysql-test/suite/rpl/r/rpl_concurrency_error.result
+2
-0
mysql-test/suite/rpl/t/rpl_concurrency_error.test
mysql-test/suite/rpl/t/rpl_concurrency_error.test
+7
-8
sql/log_event.cc
sql/log_event.cc
+11
-2
No files found.
mysql-test/suite/rpl/r/rpl_concurrency_error.result
View file @
9a632549
...
...
@@ -101,6 +101,8 @@ master-bin.000001 # Query # # use `test`; UPDATE t SET f = 'dark blue 1' WHERE f
master-bin.000001 # Query # # use `test`; INSERT INTO t VALUES (6 + (1 * 10),"brown")
master-bin.000001 # Query # # use `test`; INSERT INTO n VALUES (now(),"brown")
master-bin.000001 # Xid # # COMMIT /* XID */
source include/diff_master_slave.inc;
source include/diff_master_slave.inc;
########################################################################
# Cleanup
########################################################################
...
...
mysql-test/suite/rpl/t/rpl_concurrency_error.test
View file @
9a632549
...
...
@@ -125,14 +125,13 @@ while ($type)
connection
master
;
sync_slave_with_master
;
# Re-enable this after fixing BUG#46130
#connection master;
#let $diff_statement= SELECT * FROM t order by i;
#source include/diff_master_slave.inc;
#connection master;
#let $diff_statement= SELECT * FROM n order by d, f;
#source include/diff_master_slave.inc;
connection
master
;
let
$diff_statement
=
SELECT
*
FROM
t
order
by
i
;
source
include
/
diff_master_slave
.
inc
;
connection
master
;
let
$diff_statement
=
SELECT
*
FROM
n
order
by
d
,
f
;
source
include
/
diff_master_slave
.
inc
;
--
echo
########################################################################
--
echo
# Cleanup
...
...
sql/log_event.cc
View file @
9a632549
...
...
@@ -3169,7 +3169,7 @@ compare_errors:
/*
If we expected a non-zero error code, and we don't get the same error
code, and
none of them should be ignored
.
code, and
it should be ignored or is related to a concurrency issue
.
*/
actual_error
=
thd
->
is_error
()
?
thd
->
main_da
.
sql_errno
()
:
0
;
DBUG_PRINT
(
"info"
,(
"expected_error: %d sql_errno: %d"
,
...
...
@@ -3192,7 +3192,8 @@ Default database: '%s'. Query: '%s'",
thd
->
is_slave_error
=
1
;
}
/*
If we get the same error code as expected, or they should be ignored.
If we get the same error code as expected and it is not a concurrency
issue, or should be ignored.
*/
else
if
((
expected_error
==
actual_error
&&
!
concurrency_error_code
(
expected_error
))
||
...
...
@@ -3202,6 +3203,14 @@ Default database: '%s'. Query: '%s'",
clear_all_errors
(
thd
,
const_cast
<
Relay_log_info
*>
(
rli
));
thd
->
killed
=
THD
::
NOT_KILLED
;
}
/*
If we expected a non-zero error code and get nothing and, it is a concurrency
issue or should be ignored.
*/
else
if
(
expected_error
&&
!
actual_error
&&
(
concurrency_error_code
(
expected_error
)
||
ignored_error_code
(
expected_error
)))
ha_autocommit_or_rollback
(
thd
,
TRUE
);
/*
Other cases: mostly we expected no error and get one.
*/
...
...
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