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
e20881bf
Commit
e20881bf
authored
Feb 22, 2005
by
jan@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Plain Diff
Merge jlindstrom@bk-internal.mysql.com:/home/bk/mysql-5.0
into hundin.mysql.fi:/home/jan/mysql-5.0
parents
f55e2002
14a7a642
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
innobase/trx/trx0trx.c
innobase/trx/trx0trx.c
+15
-6
No files found.
innobase/trx/trx0trx.c
View file @
e20881bf
...
...
@@ -1848,7 +1848,7 @@ trx_recover_for_mysql(
ulint
len
)
/* in: number of slots in xid_list */
{
trx_t
*
trx
;
int
num_of_transactions
=
0
;
int
count
=
0
;
ut_ad
(
xid_list
);
ut_ad
(
len
);
...
...
@@ -1866,7 +1866,16 @@ trx_recover_for_mysql(
while
(
trx
)
{
if
(
trx
->
conc_state
==
TRX_PREPARED
)
{
xid_list
[
num_of_transactions
]
=
trx
->
xid
;
xid_list
[
count
].
formatID
=
trx
->
xid
.
formatID
;
xid_list
[
count
].
gtrid_length
=
trx
->
xid
.
gtrid_length
;
xid_list
[
count
].
bqual_length
=
trx
->
xid
.
bqual_length
;
memcpy
(
xid_list
[
count
].
data
,
trx
->
xid
.
data
,
trx
->
xid
.
gtrid_length
+
trx
->
xid
.
bqual_length
);
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
"InnoDB: Transaction %lu %lu in prepared state after recovery
\n
"
,
...
...
@@ -1877,9 +1886,9 @@ trx_recover_for_mysql(
"InnoDB: Transaction contains changes to %lu rows
\n
"
,
(
ulong
)
ut_conv_dulint_to_longlong
(
trx
->
undo_no
));
num_of_transactions
++
;
count
++
;
if
((
uint
)
num_of_transactions
==
len
)
{
if
((
uint
)
count
==
len
)
{
break
;
}
}
...
...
@@ -1891,9 +1900,9 @@ trx_recover_for_mysql(
fprintf
(
stderr
,
"InnoDB: %d transactions in prepare state after recovery
\n
"
,
num_of_transactions
);
count
);
return
(
num_of_transactions
);
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