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
17b0b45b
Commit
17b0b45b
authored
Oct 21, 2015
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup.
parent
f3e36246
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
26 deletions
+36
-26
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+28
-20
storage/xtradb/handler/ha_innodb.cc
storage/xtradb/handler/ha_innodb.cc
+8
-6
No files found.
storage/innobase/handler/ha_innodb.cc
View file @
17b0b45b
...
...
@@ -4,7 +4,7 @@ Copyright (c) 2000, 2015, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2008, 2009 Google Inc.
Copyright (c) 2009, Percona Inc.
Copyright (c) 2012, Facebook Inc.
Copyright (c) 2013, 2015 MariaDB Corporation. All Rights Reserved.
Copyright (c) 2013, 2015
,
MariaDB Corporation. All Rights Reserved.
Portions of this file contain modifications contributed and copyrighted by
Google, Inc. Those modifications are gratefully acknowledged and are described
...
...
@@ -17311,11 +17311,13 @@ wsrep_abort_slave_trx(wsrep_seqno_t bf_seqno, wsrep_seqno_t victim_seqno)
}
/*******************************************************************//**
This function is used to kill one transaction in BF. */
UNIV_INTERN
int
wsrep_innobase_kill_one_trx
(
void
*
const
bf_thd_ptr
,
wsrep_innobase_kill_one_trx
(
void
*
const
bf_thd_ptr
,
const
trx_t
*
const
bf_trx
,
trx_t
*
victim_trx
,
ibool
signal
)
trx_t
*
victim_trx
,
ibool
signal
)
{
ut_ad
(
lock_mutex_own
());
ut_ad
(
trx_mutex_own
(
victim_trx
));
...
...
@@ -17527,20 +17529,26 @@ wsrep_innobase_kill_one_trx(void * const bf_thd_ptr,
DBUG_RETURN
(
0
);
}
static
int
wsrep_abort_transaction
(
handlerton
*
hton
,
THD
*
bf_thd
,
THD
*
victim_thd
,
static
int
wsrep_abort_transaction
(
handlerton
*
hton
,
THD
*
bf_thd
,
THD
*
victim_thd
,
my_bool
signal
)
{
DBUG_ENTER
(
"wsrep_innobase_abort_thd"
);
trx_t
*
victim_trx
=
thd_to_trx
(
victim_thd
);
trx_t
*
bf_trx
=
(
bf_thd
)
?
thd_to_trx
(
bf_thd
)
:
NULL
;
WSREP_DEBUG
(
"abort transaction: BF: %s victim: %s"
,
wsrep_thd_query
(
bf_thd
),
wsrep_thd_query
(
victim_thd
));
if
(
victim_trx
)
{
victim_trx
->
current_lock_mutex_owner
=
victim_thd
;
lock_mutex_enter
();
victim_trx
->
current_lock_mutex_owner
=
victim_thd
;
trx_mutex_enter
(
victim_trx
);
int
rcode
=
wsrep_innobase_kill_one_trx
(
bf_thd
,
bf_trx
,
victim_trx
,
signal
);
...
...
storage/xtradb/handler/ha_innodb.cc
View file @
17b0b45b
...
...
@@ -4,7 +4,7 @@ Copyright (c) 2000, 2015, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2008, 2009 Google Inc.
Copyright (c) 2009, Percona Inc.
Copyright (c) 2012, Facebook Inc.
Copyright (c) 2013, 2015 MariaDB Corporation. All Rights Reserved.
Copyright (c) 2013, 2015
,
MariaDB Corporation. All Rights Reserved.
Portions of this file contain modifications contributed and copyrighted by
Google, Inc. Those modifications are gratefully acknowledged and are described
...
...
@@ -18321,11 +18321,13 @@ wsrep_abort_slave_trx(wsrep_seqno_t bf_seqno, wsrep_seqno_t victim_seqno)
}
/*******************************************************************//**
This function is used to kill one transaction in BF. */
UNIV_INTERN
int
wsrep_innobase_kill_one_trx
(
void
*
const
bf_thd_ptr
,
wsrep_innobase_kill_one_trx
(
void
*
const
bf_thd_ptr
,
const
trx_t
*
const
bf_trx
,
trx_t
*
victim_trx
,
ibool
signal
)
trx_t
*
victim_trx
,
ibool
signal
)
{
ut_ad
(
lock_mutex_own
());
ut_ad
(
trx_mutex_own
(
victim_trx
));
...
...
@@ -18549,8 +18551,8 @@ wsrep_abort_transaction(handlerton* hton, THD *bf_thd, THD *victim_thd,
wsrep_thd_query
(
victim_thd
));
if
(
victim_trx
)
{
victim_trx
->
current_lock_mutex_owner
=
victim_thd
;
lock_mutex_enter
();
victim_trx
->
current_lock_mutex_owner
=
victim_thd
;
trx_mutex_enter
(
victim_trx
);
int
rcode
=
wsrep_innobase_kill_one_trx
(
bf_thd
,
bf_trx
,
victim_trx
,
signal
);
...
...
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