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
18f160d9
Commit
18f160d9
authored
Dec 02, 2015
by
sjaakola
Committed by
Nirbhay Choubey
Feb 23, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refs codership/mysql-wsrep#233
- added dbug sync points for further mtr test for this issue
parent
bf9572ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
sql/mdl.cc
sql/mdl.cc
+10
-0
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+9
-0
No files found.
sql/mdl.cc
View file @
18f160d9
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
#include <mysql/psi/mysql_stage.h>
#include <mysql/psi/mysql_stage.h>
#ifdef WITH_WSREP
#ifdef WITH_WSREP
#include "debug_sync.h"
#include "wsrep_mysqld.h"
#include "wsrep_mysqld.h"
#include "wsrep_thd.h"
#include "wsrep_thd.h"
extern
"C"
my_thread_id
wsrep_thd_thread_id
(
THD
*
thd
);
extern
"C"
my_thread_id
wsrep_thd_thread_id
(
THD
*
thd
);
...
@@ -1445,6 +1446,15 @@ MDL_wait::timed_wait(MDL_context_owner *owner, struct timespec *abs_timeout,
...
@@ -1445,6 +1446,15 @@ MDL_wait::timed_wait(MDL_context_owner *owner, struct timespec *abs_timeout,
wait_result
!=
ETIMEDOUT
&&
wait_result
!=
ETIME
)
wait_result
!=
ETIMEDOUT
&&
wait_result
!=
ETIME
)
{
{
#ifdef WITH_WSREP
#ifdef WITH_WSREP
// Allow tests to block the applier thread using the DBUG facilities
DBUG_EXECUTE_IF
(
"sync.wsrep_before_mdl_wait"
,
{
const
char
act
[]
=
"now "
"wait_for signal.wsrep_before_mdl_wait"
;
DBUG_ASSERT
(
!
debug_sync_set_action
((
owner
->
get_thd
()),
STRING_WITH_LEN
(
act
)));
};);
if
(
wsrep_thd_is_BF
(
owner
->
get_thd
(),
true
))
if
(
wsrep_thd_is_BF
(
owner
->
get_thd
(),
true
))
{
{
wait_result
=
mysql_cond_wait
(
&
m_COND_wait_status
,
&
m_LOCK_wait_status
);
wait_result
=
mysql_cond_wait
(
&
m_COND_wait_status
,
&
m_LOCK_wait_status
);
...
...
storage/innobase/handler/ha_innodb.cc
View file @
18f160d9
...
@@ -17357,6 +17357,15 @@ wsrep_innobase_kill_one_trx(
...
@@ -17357,6 +17357,15 @@ wsrep_innobase_kill_one_trx(
(
thd
&&
wsrep_thd_query
(
thd
))
?
wsrep_thd_query
(
thd
)
:
"void"
);
(
thd
&&
wsrep_thd_query
(
thd
))
?
wsrep_thd_query
(
thd
)
:
"void"
);
wsrep_thd_LOCK
(
thd
);
wsrep_thd_LOCK
(
thd
);
DBUG_EXECUTE_IF
(
"sync.wsrep_after_BF_victim_lock"
,
{
const
char
act
[]
=
"now "
"wait_for signal.wsrep_after_BF_victim_lock"
;
DBUG_ASSERT
(
!
debug_sync_set_action
(
bf_thd
,
STRING_WITH_LEN
(
act
)));
};);
if
(
wsrep_thd_query_state
(
thd
)
==
QUERY_EXITING
)
{
if
(
wsrep_thd_query_state
(
thd
)
==
QUERY_EXITING
)
{
WSREP_DEBUG
(
"kill trx EXITING for %lu"
,
victim_trx
->
id
);
WSREP_DEBUG
(
"kill trx EXITING for %lu"
,
victim_trx
->
id
);
...
...
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