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

Proposed by Alexey Kopytov
Status: Merged
Approved by: Laurynas Biveinis
Approved revision: no longer in the source branch.
Merged at revision: 267
Proposed branch: lp:~akopytov/percona-server/bug1000221-5.5
Merge into: lp:percona-server/5.5
Prerequisite: lp:~akopytov/percona-server/null-merge-from-51
Diff against target: 29 lines (+4/-1)
1 file modified
Percona-Server/storage/innobase/fil/fil0fil.c (+4/-1)
To merge this branch: bzr merge lp:~akopytov/percona-server/bug1000221-5.5
Reviewer Review Type Date Requested Status
Laurynas Biveinis (community) Approve
Review via email: mp+108353@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/innobase/fil/fil0fil.c'
2--- Percona-Server/storage/innobase/fil/fil0fil.c 2012-05-10 07:49:14 +0000
3+++ Percona-Server/storage/innobase/fil/fil0fil.c 2012-06-01 14:47:22 +0000
4@@ -3440,6 +3440,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@@ -3478,6 +3479,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@@ -3554,7 +3556,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 index_id_t 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