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
=== modified file 'Percona-Server/storage/innobase/fil/fil0fil.c'
--- Percona-Server/storage/innobase/fil/fil0fil.c 2012-05-10 07:49:14 +0000
+++ Percona-Server/storage/innobase/fil/fil0fil.c 2012-06-01 14:47:22 +0000
@@ -3440,6 +3440,7 @@
3440 for (offset = 0; offset < free_limit_bytes;3440 for (offset = 0; offset < free_limit_bytes;
3441 offset += zip_size ? zip_size : UNIV_PAGE_SIZE) {3441 offset += zip_size ? zip_size : UNIV_PAGE_SIZE) {
3442 ibool page_is_corrupt;3442 ibool page_is_corrupt;
3443 ibool is_descr_page = FALSE;
34433444
3444 success = os_file_read(file, page,3445 success = os_file_read(file, page,
3445 (ulint)(offset & 0xFFFFFFFFUL),3446 (ulint)(offset & 0xFFFFFFFFUL),
@@ -3478,6 +3479,7 @@
34783479
3479 /* store as descr page */3480 /* store as descr page */
3480 memcpy(descr_page, page, (zip_size ? zip_size : UNIV_PAGE_SIZE));3481 memcpy(descr_page, page, (zip_size ? zip_size : UNIV_PAGE_SIZE));
3482 is_descr_page = TRUE;
34813483
3482 } else if (descr_is_corrupt) {3484 } else if (descr_is_corrupt) {
3483 /* unknown state of the page */3485 /* unknown state of the page */
@@ -3554,7 +3556,8 @@
3554 }3556 }
3555 }3557 }
35563558
3557 if (fil_page_get_type(page) == FIL_PAGE_INDEX) {3559 if (fil_page_get_type(page) ==
3560 FIL_PAGE_INDEX && !is_descr_page) {
3558 index_id_t tmp = mach_read_from_8(page + (PAGE_HEADER + PAGE_INDEX_ID));3561 index_id_t tmp = mach_read_from_8(page + (PAGE_HEADER + PAGE_INDEX_ID));
35593562
3560 for (i = 0; i < n_index; i++) {3563 for (i = 0; i < n_index; i++) {

Subscribers

People subscribed via source and target branches