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
f0ce8241
Commit
f0ce8241
authored
Jan 12, 2008
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-maria
into janus.mylan:/usr/home/serg/Abk/mysql-maria
parents
2f83a4ed
ade00215
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
148 additions
and
77 deletions
+148
-77
mysql-test/include/wait_until_connected_again.inc
mysql-test/include/wait_until_connected_again.inc
+1
-1
mysql-test/r/maria-recovery.result
mysql-test/r/maria-recovery.result
+1
-1
storage/maria/ma_loghandler.c
storage/maria/ma_loghandler.c
+135
-74
storage/maria/ma_recovery.c
storage/maria/ma_recovery.c
+11
-1
No files found.
mysql-test/include/wait_until_connected_again.inc
View file @
f0ce8241
...
...
@@ -4,7 +4,7 @@
# You should have done --enable_reconnect first
--
disable_result_log
--
disable_query_log
let
$counter
=
500
;
let
$counter
=
500
0
;
let
$mysql_errno
=
1
;
while
(
$mysql_errno
)
{
...
...
mysql-test/r/maria-recovery.result
View file @
f0ce8241
...
...
@@ -273,7 +273,7 @@ drop table t1;
* shut down mysqld, removed logs, restarted it
use mysqltest;
set @@max_allowed_packet=32000000;
create table t1 (a int, b longtext) engine=maria;
create table t1 (a int, b longtext) engine=maria
table_checksum=1
;
* copied t1 for feeding_recovery
insert into t1 values (1,"123456789012345678901234567890"),(2,"09876543210987654321");
flush table t1;
...
...
storage/maria/ma_loghandler.c
View file @
f0ce8241
This diff is collapsed.
Click to expand it.
storage/maria/ma_recovery.c
View file @
f0ce8241
...
...
@@ -2335,6 +2335,8 @@ static int run_redo_phase(LSN lsn, enum maria_apply_log_way apply)
{
tprint
(
tracef
,
"Cannot read record's body: read %u of"
" %u bytes
\n
"
,
read_len
,
rec2
.
record_length
);
translog_destroy_scanner
(
&
scanner2
);
translog_free_record_header
(
&
rec2
);
goto
err
;
}
}
...
...
@@ -2342,23 +2344,27 @@ static int run_redo_phase(LSN lsn, enum maria_apply_log_way apply)
display_and_apply_record
(
log_desc2
,
&
rec2
))
{
translog_destroy_scanner
(
&
scanner2
);
translog_free_record_header
(
&
rec2
);
goto
err
;
}
}
translog_free_record_header
(
&
rec2
);
len
=
translog_read_next_record_header
(
&
scanner2
,
&
rec2
);
if
(
len
<
0
)
/* EOF or error */
{
tprint
(
tracef
,
"Cannot find record where it should be
\n
"
);
translog_destroy_scanner
(
&
scanner2
);
translog_free_record_header
(
&
rec2
);
goto
err
;
}
}
while
(
rec2
.
lsn
<
rec
.
lsn
);
translog_free_record_header
(
&
rec2
);
/* group finished */
all_active_trans
[
sid
].
group_start_lsn
=
LSN_IMPOSSIBLE
;
current_group_end_lsn
=
LSN_IMPOSSIBLE
;
/* for debugging */
display_record_position
(
log_desc
,
&
rec
,
0
);
translog_destroy_scanner
(
&
scanner2
);
translog_free_record_header
(
&
rec2
);
}
}
if
(
apply
==
MARIA_LOG_APPLY
&&
...
...
@@ -2377,6 +2383,7 @@ static int run_redo_phase(LSN lsn, enum maria_apply_log_way apply)
all_active_trans
[
sid
].
group_start_lsn
=
rec
.
lsn
;
}
}
translog_free_record_header
(
&
rec
);
len
=
translog_read_next_record_header
(
&
scanner
,
&
rec
);
if
(
len
<
0
)
{
...
...
@@ -2403,6 +2410,7 @@ static int run_redo_phase(LSN lsn, enum maria_apply_log_way apply)
err:
translog_destroy_scanner
(
&
scanner
);
translog_free_record_header
(
&
rec
);
return
1
;
}
...
...
@@ -2559,8 +2567,10 @@ static int run_undo_phase(uint uncommitted)
{
eprint
(
tracef
,
"Got error %d when executing undo %s"
,
my_errno
,
log_desc
->
name
);
translog_free_record_header
(
&
rec
);
DBUG_RETURN
(
1
);
}
translog_free_record_header
(
&
rec
);
}
if
(
trnman_rollback_trn
(
trn
))
...
...
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