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
7033af9e
Commit
7033af9e
authored
Mar 16, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Conditionally define TRX_WSREP_ABORT
parent
ca40330d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
10 deletions
+22
-10
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+4
-0
storage/innobase/include/trx0trx.h
storage/innobase/include/trx0trx.h
+7
-5
storage/xtradb/handler/ha_innodb.cc
storage/xtradb/handler/ha_innodb.cc
+4
-0
storage/xtradb/include/trx0trx.h
storage/xtradb/include/trx0trx.h
+7
-5
No files found.
storage/innobase/handler/ha_innodb.cc
View file @
7033af9e
...
...
@@ -4917,8 +4917,10 @@ static void innobase_kill_query(handlerton*, THD* thd, enum thd_kill_levels)
ut_ad
(
trx
->
mysql_thd
==
thd
);
switch
(
trx
->
abort_type
)
{
#ifdef WITH_WSREP
case
TRX_WSREP_ABORT
:
break
;
#endif
case
TRX_SERVER_ABORT
:
if
(
!
wsrep_thd_is_BF
(
trx
->
mysql_thd
,
FALSE
))
{
lock_mutex_enter
();
...
...
@@ -4930,8 +4932,10 @@ static void innobase_kill_query(handlerton*, THD* thd, enum thd_kill_levels)
/* Cancel a pending lock request if there are any */
lock_trx_handle_wait
(
trx
);
switch
(
trx
->
abort_type
)
{
#ifdef WITH_WSREP
case
TRX_WSREP_ABORT
:
break
;
#endif
case
TRX_SERVER_ABORT
:
if
(
!
wsrep_thd_is_BF
(
trx
->
mysql_thd
,
FALSE
))
{
lock_mutex_exit
();
...
...
storage/innobase/include/trx0trx.h
View file @
7033af9e
/*****************************************************************************
Copyright (c) 1996, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2015, 201
7
, MariaDB Corporation.
Copyright (c) 2015, 201
8
, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
...
...
@@ -695,11 +695,13 @@ lock_rec_convert_impl_to_expl()) will access transactions associated
to other connections. The locks of transactions are protected by
lock_sys->mutex and sometimes by trx->mutex. */
typedef
enum
{
enum
trx_abort_t
{
TRX_SERVER_ABORT
=
0
,
TRX_WSREP_ABORT
=
1
,
TRX_REPLICATION_ABORT
=
2
}
trx_abort_t
;
#ifdef WITH_WSREP
TRX_WSREP_ABORT
,
#endif
TRX_REPLICATION_ABORT
};
struct
trx_t
{
ulint
magic_n
;
...
...
storage/xtradb/handler/ha_innodb.cc
View file @
7033af9e
...
...
@@ -5513,8 +5513,10 @@ static void innobase_kill_query(handlerton*, THD* thd, enum thd_kill_levels)
ut_ad
(
trx
->
mysql_thd
==
thd
);
switch
(
trx
->
abort_type
)
{
#ifdef WITH_WSREP
case
TRX_WSREP_ABORT
:
break
;
#endif
case
TRX_SERVER_ABORT
:
if
(
!
wsrep_thd_is_BF
(
trx
->
mysql_thd
,
FALSE
))
{
lock_mutex_enter
();
...
...
@@ -5526,8 +5528,10 @@ static void innobase_kill_query(handlerton*, THD* thd, enum thd_kill_levels)
/* Cancel a pending lock request if there are any */
lock_trx_handle_wait
(
trx
);
switch
(
trx
->
abort_type
)
{
#ifdef WITH_WSREP
case
TRX_WSREP_ABORT
:
break
;
#endif
case
TRX_SERVER_ABORT
:
if
(
!
wsrep_thd_is_BF
(
trx
->
mysql_thd
,
FALSE
))
{
lock_mutex_exit
();
...
...
storage/xtradb/include/trx0trx.h
View file @
7033af9e
/*****************************************************************************
Copyright (c) 1996, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2015, 201
7, MariaDB Corporation
Copyright (c) 2015, 201
8, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
...
...
@@ -744,11 +744,13 @@ lock_rec_convert_impl_to_expl()) will access transactions associated
to other connections. The locks of transactions are protected by
lock_sys->mutex and sometimes by trx->mutex. */
typedef
enum
{
enum
trx_abort_t
{
TRX_SERVER_ABORT
=
0
,
TRX_WSREP_ABORT
=
1
,
TRX_REPLICATION_ABORT
=
2
}
trx_abort_t
;
#ifdef WITH_WSREP
TRX_WSREP_ABORT
,
#endif
TRX_REPLICATION_ABORT
};
struct
trx_t
{
ulint
magic_n
;
...
...
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