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
37e24970
Commit
37e24970
authored
Feb 02, 2021
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge
parent
2676c9aa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
sql/wsrep_mysqld.cc
sql/wsrep_mysqld.cc
+1
-1
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+6
-2
No files found.
sql/wsrep_mysqld.cc
View file @
37e24970
...
...
@@ -2747,7 +2747,7 @@ extern "C" void wsrep_thd_awake(THD *thd, my_bool signal)
{
if
(
signal
)
{
thd
->
awake
(
KILL_QUERY
);
thd
->
awake
_no_mutex
(
KILL_QUERY
);
}
else
{
...
...
storage/innobase/handler/ha_innodb.cc
View file @
37e24970
...
...
@@ -18767,15 +18767,17 @@ static void bg_wsrep_kill_trx(
DBUG_ENTER
(
"bg_wsrep_kill_trx"
);
if
(
thd
)
{
wsrep_thd_LOCK
(
thd
);
victim_trx
=
thd_to_trx
(
thd
);
lock_mutex_enter
();
trx_mutex_enter
(
victim_trx
);
wsrep_thd_UNLOCK
(
thd
);
if
(
victim_trx
->
id
!=
arg
->
trx_id
)
{
trx_mutex_exit
(
victim_trx
);
lock_mutex_exit
();
wsrep_thd_UNLOCK
(
thd
);
victim_trx
=
NULL
;
wsrep_thd_kill_UNLOCK
(
thd
);
}
}
...
...
@@ -18944,7 +18946,7 @@ static void bg_wsrep_kill_trx(
lock_mutex_exit
();
if
(
awake
)
wsrep_thd_awake
(
thd
,
arg
->
signal
);
wsrep_thd_UNLOCK
(
thd
);
wsrep_thd_
kill_
UNLOCK
(
thd
);
ret:
free
(
arg
);
...
...
@@ -19021,10 +19023,12 @@ wsrep_abort_transaction(
DBUG_VOID_RETURN
;
}
else
{
WSREP_DEBUG
(
"victim does not have transaction"
);
wsrep_thd_kill_LOCK
(
victim_thd
);
wsrep_thd_LOCK
(
victim_thd
);
wsrep_thd_set_conflict_state
(
victim_thd
,
MUST_ABORT
);
wsrep_thd_UNLOCK
(
victim_thd
);
wsrep_thd_awake
(
victim_thd
,
signal
);
wsrep_thd_kill_UNLOCK
(
victim_thd
);
}
DBUG_VOID_RETURN
;
...
...
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