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
3bd16c79
Commit
3bd16c79
authored
Feb 22, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge heikki@bk-internal.mysql.com:/home/bk/mysql-5.0
into hundin.mysql.fi:/home/heikki/mysql-5.0
parents
59554966
10ffa887
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
5 deletions
+29
-5
innobase/trx/trx0trx.c
innobase/trx/trx0trx.c
+29
-5
No files found.
innobase/trx/trx0trx.c
View file @
3bd16c79
...
...
@@ -434,9 +434,21 @@ trx_lists_init_at_db_start(void)
commit or abort decision from MySQL */
if
(
undo
->
state
==
TRX_UNDO_PREPARED
)
{
trx
->
conc_state
=
TRX_PREPARED
;
fprintf
(
stderr
,
"InnoDB: Transaction %lu %lu was in the XA prepared state. We change it to
\n
"
"InnoDB: the 'active' state, so that InnoDB's true-and-tested crash
\n
"
"InnoDB: recovery will roll it back. If mysqld refuses to start after
\n
"
"InnoDB: this, you may be able to resolve the problem by moving the binlog
\n
"
"InnoDB: files to a safe place, and deleting all binlog files and the binlog
\n
"
"InnoDB: .index file from the datadir.
\n
"
,
ut_dulint_get_high
(
trx
->
id
),
ut_dulint_get_low
(
trx
->
id
));
/* trx->conc_state = TRX_PREPARED; */
trx
->
conc_state
=
TRX_ACTIVE
;
}
else
{
trx
->
conc_state
=
trx
->
conc_state
=
TRX_COMMITTED_IN_MEMORY
;
}
...
...
@@ -490,11 +502,23 @@ trx_lists_init_at_db_start(void)
commit or abort decision from MySQL */
if
(
undo
->
state
==
TRX_UNDO_PREPARED
)
{
trx
->
conc_state
=
TRX_PREPARED
;
fprintf
(
stderr
,
"InnoDB: Transaction %lu %lu was in the XA prepared state. We change it to
\n
"
"InnoDB: the 'active' state, so that InnoDB's true-and-tested crash
\n
"
"InnoDB: recovery will roll it back. If mysqld refuses to start after
\n
"
"InnoDB: this, you may be able to resolve the problem by moving the binlog
\n
"
"InnoDB: files to a safe place, and deleting all binlog files and the binlog
\n
"
"InnoDB: .index file from the datadir.
\n
"
,
ut_dulint_get_high
(
trx
->
id
),
ut_dulint_get_low
(
trx
->
id
));
/* trx->conc_state = TRX_PREPARED; */
trx
->
conc_state
=
TRX_ACTIVE
;
}
else
{
trx
->
conc_state
=
TRX_COMMITTED_IN_MEMORY
;
TRX_COMMITTED_IN_MEMORY
;
}
/* We give a dummy value for the trx
...
...
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