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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
16c96b88
Commit
16c96b88
authored
May 24, 2005
by
jan@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print information about XA recovery only if there are prepared XA transactions
after recovery.
parent
ce5d59d3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
innobase/trx/trx0trx.c
innobase/trx/trx0trx.c
+11
-7
No files found.
innobase/trx/trx0trx.c
View file @
16c96b88
...
@@ -1926,10 +1926,6 @@ trx_recover_for_mysql(
...
@@ -1926,10 +1926,6 @@ trx_recover_for_mysql(
ut_ad
(
xid_list
);
ut_ad
(
xid_list
);
ut_ad
(
len
);
ut_ad
(
len
);
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
" InnoDB: Starting recovery for XA transactions...
\n
"
);
/* We should set those transactions which are in the prepared state
/* We should set those transactions which are in the prepared state
to the xid_list */
to the xid_list */
...
@@ -1941,6 +1937,12 @@ trx_recover_for_mysql(
...
@@ -1941,6 +1937,12 @@ trx_recover_for_mysql(
if
(
trx
->
conc_state
==
TRX_PREPARED
)
{
if
(
trx
->
conc_state
==
TRX_PREPARED
)
{
xid_list
[
count
]
=
trx
->
xid
;
xid_list
[
count
]
=
trx
->
xid
;
if
(
count
==
0
)
{
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
" InnoDB: Starting recovery for XA transactions...
\n
"
);
}
ut_print_timestamp
(
stderr
);
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
fprintf
(
stderr
,
" InnoDB: Transaction %lu %lu in prepared state after recovery
\n
"
,
" InnoDB: Transaction %lu %lu in prepared state after recovery
\n
"
,
...
@@ -1964,10 +1966,12 @@ trx_recover_for_mysql(
...
@@ -1964,10 +1966,12 @@ trx_recover_for_mysql(
mutex_exit
(
&
kernel_mutex
);
mutex_exit
(
&
kernel_mutex
);
if
(
count
>
0
){
ut_print_timestamp
(
stderr
);
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
fprintf
(
stderr
,
" InnoDB: %d transactions in prepared state after recovery
\n
"
,
" InnoDB: %d transactions in prepared state after recovery
\n
"
,
count
);
count
);
}
return
(
count
);
return
(
count
);
}
}
...
...
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