Merge lp:~akopytov/percona-server/bug1000221-5.1 into lp:percona-server/5.1

Proposed by Alexey Kopytov
Status: Merged
Approved by: Laurynas Biveinis
Approved revision: no longer in the source branch.
Merged at revision: 451
Proposed branch: lp:~akopytov/percona-server/bug1000221-5.1
Merge into: lp:percona-server/5.1
Diff against target: 29 lines (+4/-1)
1 file modified
Percona-Server/storage/innodb_plugin/fil/fil0fil.c (+4/-1)
To merge this branch: bzr merge lp:~akopytov/percona-server/bug1000221-5.1
Reviewer Review Type Date Requested Status
Laurynas Biveinis (community) Approve
Review via email: mp+108354@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Alexey Kopytov (akopytov) wrote :
Revision history for this message
Alexey Kopytov (akopytov) wrote :

issue #21353.

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Percona-Server/storage/innodb_plugin/fil/fil0fil.c'
2--- Percona-Server/storage/innodb_plugin/fil/fil0fil.c 2012-05-09 04:14:12 +0000
3+++ Percona-Server/storage/innodb_plugin/fil/fil0fil.c 2012-06-01 14:48:37 +0000
4@@ -3375,6 +3375,7 @@
5 for (offset = 0; offset < free_limit_bytes;
6 offset += zip_size ? zip_size : UNIV_PAGE_SIZE) {
7 ibool page_is_corrupt;
8+ ibool is_descr_page = FALSE;
9
10 success = os_file_read(file, page,
11 (ulint)(offset & 0xFFFFFFFFUL),
12@@ -3413,6 +3414,7 @@
13
14 /* store as descr page */
15 memcpy(descr_page, page, (zip_size ? zip_size : UNIV_PAGE_SIZE));
16+ is_descr_page = TRUE;
17
18 } else if (descr_is_corrupt) {
19 /* unknown state of the page */
20@@ -3489,7 +3491,8 @@
21 }
22 }
23
24- if (fil_page_get_type(page) == FIL_PAGE_INDEX) {
25+ if (fil_page_get_type(page) ==
26+ FIL_PAGE_INDEX && !is_descr_page) {
27 dulint tmp = mach_read_from_8(page + (PAGE_HEADER + PAGE_INDEX_ID));
28
29 for (i = 0; i < n_index; i++) {

Subscribers

People subscribed via source and target branches