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
892cf2de
Commit
892cf2de
authored
Oct 31, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.0 into 10.1
parents
88edb1b3
d11001d1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
7 deletions
+33
-7
storage/connect/ha_connect.cc
storage/connect/ha_connect.cc
+1
-1
storage/innobase/trx/trx0trx.cc
storage/innobase/trx/trx0trx.cc
+3
-2
storage/innobase/trx/trx0undo.cc
storage/innobase/trx/trx0undo.cc
+13
-1
storage/xtradb/trx/trx0trx.cc
storage/xtradb/trx/trx0trx.cc
+3
-2
storage/xtradb/trx/trx0undo.cc
storage/xtradb/trx/trx0undo.cc
+13
-1
No files found.
storage/connect/ha_connect.cc
View file @
892cf2de
...
...
@@ -5398,10 +5398,10 @@ static int connect_assisted_discovery(handlerton *, THD* thd,
#endif // __WIN__
//int hdr, mxe;
int
port
=
0
,
mxr
=
0
,
rc
=
0
,
mul
=
0
,
lrecl
=
0
;
PCSZ
tabtyp
=
NULL
;
#if defined(ODBC_SUPPORT)
POPARM
sop
=
NULL
;
PCSZ
ucnc
=
NULL
;
PCSZ
tabtyp
=
NULL
;
bool
cnc
=
false
;
int
cto
=
-
1
,
qto
=
-
1
;
#endif // ODBC_SUPPORT
...
...
storage/innobase/trx/trx0trx.cc
View file @
892cf2de
...
...
@@ -314,8 +314,9 @@ trx_free_prepared(
trx_t
*
trx
)
/*!< in, own: trx object */
{
ut_a
(
trx_state_eq
(
trx
,
TRX_STATE_PREPARED
)
||
(
trx_state_eq
(
trx
,
TRX_STATE_ACTIVE
)
&&
trx
->
is_recovered
||
(
trx
->
is_recovered
&&
(
trx_state_eq
(
trx
,
TRX_STATE_ACTIVE
)
||
trx_state_eq
(
trx
,
TRX_STATE_COMMITTED_IN_MEMORY
))
&&
(
srv_read_only_mode
||
srv_force_recovery
>=
SRV_FORCE_NO_TRX_UNDO
)));
ut_a
(
trx
->
magic_n
==
TRX_MAGIC_N
);
...
...
storage/innobase/trx/trx0undo.cc
View file @
892cf2de
/*****************************************************************************
Copyright (c) 1996, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2014, 2017, MariaDB Corporation.
All Rights Reserved.
Copyright (c) 2014, 2017, 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
...
...
@@ -2015,6 +2015,12 @@ trx_undo_free_prepared(
switch
(
trx
->
update_undo
->
state
)
{
case
TRX_UNDO_PREPARED
:
break
;
case
TRX_UNDO_CACHED
:
case
TRX_UNDO_TO_FREE
:
case
TRX_UNDO_TO_PURGE
:
ut_ad
(
trx_state_eq
(
trx
,
TRX_STATE_COMMITTED_IN_MEMORY
));
/* fall through */
case
TRX_UNDO_ACTIVE
:
/* lock_trx_release_locks() assigns
trx->is_recovered=false */
...
...
@@ -2033,6 +2039,12 @@ trx_undo_free_prepared(
switch
(
trx
->
insert_undo
->
state
)
{
case
TRX_UNDO_PREPARED
:
break
;
case
TRX_UNDO_CACHED
:
case
TRX_UNDO_TO_FREE
:
case
TRX_UNDO_TO_PURGE
:
ut_ad
(
trx_state_eq
(
trx
,
TRX_STATE_COMMITTED_IN_MEMORY
));
/* fall through */
case
TRX_UNDO_ACTIVE
:
/* lock_trx_release_locks() assigns
trx->is_recovered=false */
...
...
storage/xtradb/trx/trx0trx.cc
View file @
892cf2de
...
...
@@ -480,8 +480,9 @@ trx_free_prepared(
trx_t
*
trx
)
/*!< in, own: trx object */
{
ut_a
(
trx_state_eq
(
trx
,
TRX_STATE_PREPARED
)
||
(
trx_state_eq
(
trx
,
TRX_STATE_ACTIVE
)
&&
trx
->
is_recovered
||
(
trx
->
is_recovered
&&
(
trx_state_eq
(
trx
,
TRX_STATE_ACTIVE
)
||
trx_state_eq
(
trx
,
TRX_STATE_COMMITTED_IN_MEMORY
))
&&
(
srv_read_only_mode
||
srv_apply_log_only
||
srv_force_recovery
>=
SRV_FORCE_NO_TRX_UNDO
)));
...
...
storage/xtradb/trx/trx0undo.cc
View file @
892cf2de
/*****************************************************************************
Copyright (c) 1996, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2014, 2017, MariaDB Corporation.
All Rights Reserved.
Copyright (c) 2014, 2017, 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
...
...
@@ -2015,6 +2015,12 @@ trx_undo_free_prepared(
switch
(
trx
->
update_undo
->
state
)
{
case
TRX_UNDO_PREPARED
:
break
;
case
TRX_UNDO_CACHED
:
case
TRX_UNDO_TO_FREE
:
case
TRX_UNDO_TO_PURGE
:
ut_ad
(
trx_state_eq
(
trx
,
TRX_STATE_COMMITTED_IN_MEMORY
));
/* fall through */
case
TRX_UNDO_ACTIVE
:
/* lock_trx_release_locks() assigns
trx->is_recovered=false */
...
...
@@ -2033,6 +2039,12 @@ trx_undo_free_prepared(
switch
(
trx
->
insert_undo
->
state
)
{
case
TRX_UNDO_PREPARED
:
break
;
case
TRX_UNDO_CACHED
:
case
TRX_UNDO_TO_FREE
:
case
TRX_UNDO_TO_PURGE
:
ut_ad
(
trx_state_eq
(
trx
,
TRX_STATE_COMMITTED_IN_MEMORY
));
/* fall through */
case
TRX_UNDO_ACTIVE
:
/* lock_trx_release_locks() assigns
trx->is_recovered=false */
...
...
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