Merge lp:~linuxjedi/drizzle/trunk-bug-748064 into lp:~drizzle-trunk/drizzle/development

Proposed by Andrew Hutchings
Status: Merged
Approved by: Lee Bieber
Approved revision: 2261
Merged at revision: 2277
Proposed branch: lp:~linuxjedi/drizzle/trunk-bug-748064
Merge into: lp:~drizzle-trunk/drizzle/development
Diff against target: 101 lines (+0/-21)
1 file modified
plugin/innobase/xtrabackup/xtrabackup.cc (+0/-21)
To merge this branch: bzr merge lp:~linuxjedi/drizzle/trunk-bug-748064
Reviewer Review Type Date Requested Status
Stewart Smith (community) Approve
Drizzle Merge Team Pending
Review via email: mp+56032@code.launchpad.net

Description of the change

Fix xtrabackup to compile in GCC 4.6

To post a comment you must log in.
Revision history for this message
Stewart Smith (stewart) wrote :

Unless these bits are just unused because of the #ifdefs for old innobase versions that we've removed in Drizzle, we should fix this in upstream percona-xtrabackup and merge back

review: Needs Fixing
Revision history for this message
Brian Aker (brianaker) wrote :

Hmmm I am wondering how fast they fix their trees. I will be concerned if this is a long process (ie we can deal with merges better then we can deal with waiting).

Another way to think about it, we have to be able to ship, whether or not they decide to act or not.

Tricky :)

Revision history for this message
Andrew Hutchings (linuxjedi) wrote :

Stewart, unless they compile with the same warning/error set we do then it isn't really affecting percona-xtrabackup. I'd rather it fixed with us first because I can't compile Drizzle locally without this (although I guess I can just manually patch every branch I work on for now).

I'll take a look at percona-xtrabackup branch during the week and see.

Revision history for this message
Stewart Smith (stewart) wrote :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'plugin/innobase/xtrabackup/xtrabackup.cc'
--- plugin/innobase/xtrabackup/xtrabackup.cc 2011-03-31 06:41:20 +0000
+++ plugin/innobase/xtrabackup/xtrabackup.cc 2011-04-02 07:37:45 +0000
@@ -1678,7 +1678,6 @@
1678 ibool success;1678 ibool success;
1679 byte* page;1679 byte* page;
1680 byte* buf2 = NULL;1680 byte* buf2 = NULL;
1681 LSN64 flush_lsn;
1682 IB_INT64 file_size;1681 IB_INT64 file_size;
1683 IB_INT64 offset;1682 IB_INT64 offset;
1684 ulint page_in_buffer= 0;1683 ulint page_in_buffer= 0;
@@ -1900,11 +1899,6 @@
1900 if (!success) {1899 if (!success) {
1901 goto error;1900 goto error;
1902 }1901 }
1903 flush_lsn = MACH_READ_64(page + FIL_PAGE_FILE_FLUSH_LSN);
1904 /* check current flush lsn newer than checkpoint@start */
1905// if (ut_dulint_cmp(backup_start_checkpoint, flush_lsn) >= 0) {
1906// goto error;
1907// }
19081902
1909 file_size = os_file_get_size_as_iblonglong(src_file);1903 file_size = os_file_get_size_as_iblonglong(src_file);
19101904
@@ -2111,8 +2105,6 @@
2111{2105{
2112 /* definition from recv_recovery_from_checkpoint_start() */2106 /* definition from recv_recovery_from_checkpoint_start() */
2113 log_group_t* group;2107 log_group_t* group;
2114 log_group_t* up_to_date_group;
2115 LSN64 old_scanned_lsn;
2116 LSN64 group_scanned_lsn;2108 LSN64 group_scanned_lsn;
2117 LSN64 contiguous_lsn;2109 LSN64 contiguous_lsn;
21182110
@@ -2135,8 +2127,6 @@
2135 LSN64 end_lsn;2127 LSN64 end_lsn;
21362128
21372129
2138 old_scanned_lsn = from_lsn;
2139
2140 /* reference recv_group_scan_log_recs() */2130 /* reference recv_group_scan_log_recs() */
2141 finished = FALSE;2131 finished = FALSE;
21422132
@@ -2159,7 +2149,6 @@
2159 ulint no;2149 ulint no;
2160 LSN64 scanned_lsn;2150 LSN64 scanned_lsn;
2161 ulint data_len;2151 ulint data_len;
2162 ibool more_data;
21632152
2164 ulint scanned_checkpoint_no = 0;2153 ulint scanned_checkpoint_no = 0;
21652154
@@ -2167,7 +2156,6 @@
2167 2156
2168 log_block = log_sys->buf;2157 log_block = log_sys->buf;
2169 scanned_lsn = start_lsn;2158 scanned_lsn = start_lsn;
2170 more_data = FALSE;
21712159
2172 while (log_block < log_sys->buf + RECV_SCAN_SIZE && !finished) {2160 while (log_block < log_sys->buf + RECV_SCAN_SIZE && !finished) {
21732161
@@ -2325,11 +2313,6 @@
23252313
2326 group->scanned_lsn = group_scanned_lsn;2314 group->scanned_lsn = group_scanned_lsn;
2327 2315
2328 if (ut_dulint_cmp(old_scanned_lsn, group_scanned_lsn) < 0) {
2329 /* We found a more up-to-date group */
2330
2331 up_to_date_group = group;
2332 }
23332316
2334 fprintf(stderr, ">> log scanned up to (%"PRIu64")\n",group->scanned_lsn);2317 fprintf(stderr, ">> log scanned up to (%"PRIu64")\n",group->scanned_lsn);
23352318
@@ -3232,7 +3215,6 @@
3232 ulint space_id;3215 ulint space_id;
3233 ulint page_no;3216 ulint page_no;
3234 ulint offset;3217 ulint offset;
3235 ulint extern_len;
3236 byte* blob_header;3218 byte* blob_header;
3237 ulint part_len;3219 ulint part_len;
3238 mtr_t local_mtr;3220 mtr_t local_mtr;
@@ -3248,7 +3230,6 @@
3248 space_id = mach_read_from_4(data + local_len + BTR_EXTERN_SPACE_ID);3230 space_id = mach_read_from_4(data + local_len + BTR_EXTERN_SPACE_ID);
3249 page_no = mach_read_from_4(data + local_len + BTR_EXTERN_PAGE_NO);3231 page_no = mach_read_from_4(data + local_len + BTR_EXTERN_PAGE_NO);
3250 offset = mach_read_from_4(data + local_len + BTR_EXTERN_OFFSET);3232 offset = mach_read_from_4(data + local_len + BTR_EXTERN_OFFSET);
3251 extern_len = mach_read_from_4(data + local_len + BTR_EXTERN_LEN + 4);
32523233
3253 if (offset != FIL_PAGE_DATA)3234 if (offset != FIL_PAGE_DATA)
3254 fprintf(stderr, "\nWarning: several record may share same external page.\n");3235 fprintf(stderr, "\nWarning: several record may share same external page.\n");
@@ -3605,7 +3586,6 @@
36053586
3606 LSN64 max_no;3587 LSN64 max_no;
3607 LSN64 max_lsn;3588 LSN64 max_lsn;
3608 ulint max_field;
3609 LSN64 checkpoint_no;3589 LSN64 checkpoint_no;
36103590
3611 ulint fold;3591 ulint fold;
@@ -3735,7 +3715,6 @@
3735 if (ut_dulint_cmp(checkpoint_no, max_no) >= 0) {3715 if (ut_dulint_cmp(checkpoint_no, max_no) >= 0) {
3736 max_no = checkpoint_no;3716 max_no = checkpoint_no;
3737 max_lsn = MACH_READ_64(log_buf + field + LOG_CHECKPOINT_LSN);3717 max_lsn = MACH_READ_64(log_buf + field + LOG_CHECKPOINT_LSN);
3738 max_field = field;
3739/*3718/*
3740 mach_write_to_4(log_buf + field + LOG_CHECKPOINT_OFFSET,3719 mach_write_to_4(log_buf + field + LOG_CHECKPOINT_OFFSET,
3741 LOG_FILE_HDR_SIZE + ut_dulint_minus(max_lsn,3720 LOG_FILE_HDR_SIZE + ut_dulint_minus(max_lsn,