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
047abdac
Commit
047abdac
authored
Mar 15, 2018
by
Jan Lindström
Committed by
GitHub
Mar 15, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #653 from codership/MDEV-13549-fixes-for-MW-286
MDEV-13549 Fix and re-enable test galera.MW-286
parents
efb9dec2
0368e75a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
11 deletions
+4
-11
mysql-test/suite/galera/disabled.def
mysql-test/suite/galera/disabled.def
+0
-6
mysql-test/suite/galera/t/MW-286.test
mysql-test/suite/galera/t/MW-286.test
+0
-1
sql/sql_parse.cc
sql/sql_parse.cc
+3
-3
sql/wsrep_mysqld.cc
sql/wsrep_mysqld.cc
+1
-1
No files found.
mysql-test/suite/galera/disabled.def
View file @
047abdac
...
...
@@ -13,7 +13,6 @@ MW-336 : MDEV-13549 Galera test failures
galera_gra_log : MDEV-13549 Galera test failures
galera_flush_local : MDEV-13549 Galera test failures
galera_flush : MDEV-13549 Galera test failures
MW-329 : MDEV-13549 Galera test failures
galera_account_management : MariaDB 10.0 does not support ALTER USER
galera_binlog_row_image : MariaDB 10.0 does not support binlog_row_image
galera_binlog_rows_query_log_events: MariaDB does not support binlog_rows_query_log_events
...
...
@@ -48,16 +47,11 @@ galera_toi_ddl_nonconflicting : MDEV-13549 Galera test failures
galera_parallel_simple : MDEV-13549 Galera test failures
galera_admin : MDEV-13549 Galera test failures
galera_var_max_ws_rows : MDEV-13549 Galera test failures 10.1
MW-286 : MDEV-13549 Galera test failures 10.1
galera_as_master: MDEV-13549 Galera test failures 10.1
galera_pc_ignore_sb : MDEV-13549 Galera test failures 10.1
galera_lock_table : MDEV-13549 Galera test failures 10.1
MW-284 : MDEV-13549 Galera test failures 10.1
galera_as_slave : MDEV-13549 Galera test failures 10.1
MW-328C : MDEV-13549 Galera test failures 10.1
MW-328A : MDEV-13549 Galera test failures 10.1
MW-328B : MDEV-13549 Galera test failures 10.1
MW-328 : MDEV-13549 Galera test failures 10.1
galera_suspend_slave : MDEV-13549 Galera test failures 10.1
galera_gtid : MDEV-13549 Galera test failures 10.1
galera_gtid_slave : MDEV-13549 Galera test failures 10.1
...
...
mysql-test/suite/galera/t/MW-286.test
View file @
047abdac
...
...
@@ -25,7 +25,6 @@ SET wsrep_on = FALSE;
--
error
ER_QUERY_INTERRUPTED
ALTER
TABLE
t1
ADD
PRIMARY
KEY
(
f1
);
SET
SESSION
wsrep_sync_wait
=
0
;
SET
wsrep_on
=
TRUE
;
SET
GLOBAL
wsrep_desync
=
FALSE
;
...
...
sql/sql_parse.cc
View file @
047abdac
...
...
@@ -7193,7 +7193,6 @@ static void wsrep_mysql_parse(THD *thd, char *rawbuf, uint length,
thd
->
wsrep_conflict_state
==
CERT_FAILURE
)
{
thd
->
reset_for_next_command
();
thd
->
reset_killed
();
if
(
is_autocommit
&&
thd
->
lex
->
sql_command
!=
SQLCOM_SELECT
&&
(
thd
->
wsrep_retry_counter
<
thd
->
variables
.
wsrep_retry_autocommit
))
...
...
@@ -7221,17 +7220,18 @@ static void wsrep_mysql_parse(THD *thd, char *rawbuf, uint length,
thd
->
thread_id
,
is_autocommit
,
thd
->
wsrep_retry_counter
,
thd
->
variables
.
wsrep_retry_autocommit
,
thd
->
query
());
my_error
(
ER_LOCK_DEADLOCK
,
MYF
(
0
),
"wsrep aborted transaction"
);
thd
->
reset_killed
();
thd
->
wsrep_conflict_state
=
NO_CONFLICT
;
if
(
thd
->
wsrep_conflict_state
!=
REPLAYING
)
thd
->
wsrep_retry_counter
=
0
;
// reset
}
mysql_mutex_unlock
(
&
thd
->
LOCK_wsrep_thd
);
thd
->
reset_killed
();
}
else
{
set_if_smaller
(
thd
->
wsrep_retry_counter
,
0
);
// reset; eventually ok
mysql_mutex_unlock
(
&
thd
->
LOCK_wsrep_thd
);
}
mysql_mutex_unlock
(
&
thd
->
LOCK_wsrep_thd
);
}
/* If retry is requested clean up explain structure */
...
...
sql/wsrep_mysqld.cc
View file @
047abdac
...
...
@@ -2336,7 +2336,7 @@ extern "C" void wsrep_thd_set_query_state(
void
wsrep_thd_set_conflict_state
(
THD
*
thd
,
enum
wsrep_conflict_state
state
)
{
thd
->
wsrep_conflict_state
=
state
;
if
(
WSREP
(
thd
))
thd
->
wsrep_conflict_state
=
state
;
}
...
...
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