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
1=== modified file 'plugin/innobase/xtrabackup/xtrabackup.cc'
2--- plugin/innobase/xtrabackup/xtrabackup.cc 2011-03-31 06:41:20 +0000
3+++ plugin/innobase/xtrabackup/xtrabackup.cc 2011-04-02 07:37:45 +0000
4@@ -1678,7 +1678,6 @@
5 ibool success;
6 byte* page;
7 byte* buf2 = NULL;
8- LSN64 flush_lsn;
9 IB_INT64 file_size;
10 IB_INT64 offset;
11 ulint page_in_buffer= 0;
12@@ -1900,11 +1899,6 @@
13 if (!success) {
14 goto error;
15 }
16- flush_lsn = MACH_READ_64(page + FIL_PAGE_FILE_FLUSH_LSN);
17- /* check current flush lsn newer than checkpoint@start */
18-// if (ut_dulint_cmp(backup_start_checkpoint, flush_lsn) >= 0) {
19-// goto error;
20-// }
21
22 file_size = os_file_get_size_as_iblonglong(src_file);
23
24@@ -2111,8 +2105,6 @@
25 {
26 /* definition from recv_recovery_from_checkpoint_start() */
27 log_group_t* group;
28- log_group_t* up_to_date_group;
29- LSN64 old_scanned_lsn;
30 LSN64 group_scanned_lsn;
31 LSN64 contiguous_lsn;
32
33@@ -2135,8 +2127,6 @@
34 LSN64 end_lsn;
35
36
37- old_scanned_lsn = from_lsn;
38-
39 /* reference recv_group_scan_log_recs() */
40 finished = FALSE;
41
42@@ -2159,7 +2149,6 @@
43 ulint no;
44 LSN64 scanned_lsn;
45 ulint data_len;
46- ibool more_data;
47
48 ulint scanned_checkpoint_no = 0;
49
50@@ -2167,7 +2156,6 @@
51
52 log_block = log_sys->buf;
53 scanned_lsn = start_lsn;
54- more_data = FALSE;
55
56 while (log_block < log_sys->buf + RECV_SCAN_SIZE && !finished) {
57
58@@ -2325,11 +2313,6 @@
59
60 group->scanned_lsn = group_scanned_lsn;
61
62- if (ut_dulint_cmp(old_scanned_lsn, group_scanned_lsn) < 0) {
63- /* We found a more up-to-date group */
64-
65- up_to_date_group = group;
66- }
67
68 fprintf(stderr, ">> log scanned up to (%"PRIu64")\n",group->scanned_lsn);
69
70@@ -3232,7 +3215,6 @@
71 ulint space_id;
72 ulint page_no;
73 ulint offset;
74- ulint extern_len;
75 byte* blob_header;
76 ulint part_len;
77 mtr_t local_mtr;
78@@ -3248,7 +3230,6 @@
79 space_id = mach_read_from_4(data + local_len + BTR_EXTERN_SPACE_ID);
80 page_no = mach_read_from_4(data + local_len + BTR_EXTERN_PAGE_NO);
81 offset = mach_read_from_4(data + local_len + BTR_EXTERN_OFFSET);
82- extern_len = mach_read_from_4(data + local_len + BTR_EXTERN_LEN + 4);
83
84 if (offset != FIL_PAGE_DATA)
85 fprintf(stderr, "\nWarning: several record may share same external page.\n");
86@@ -3605,7 +3586,6 @@
87
88 LSN64 max_no;
89 LSN64 max_lsn;
90- ulint max_field;
91 LSN64 checkpoint_no;
92
93 ulint fold;
94@@ -3735,7 +3715,6 @@
95 if (ut_dulint_cmp(checkpoint_no, max_no) >= 0) {
96 max_no = checkpoint_no;
97 max_lsn = MACH_READ_64(log_buf + field + LOG_CHECKPOINT_LSN);
98- max_field = field;
99 /*
100 mach_write_to_4(log_buf + field + LOG_CHECKPOINT_OFFSET,
101 LOG_FILE_HDR_SIZE + ut_dulint_minus(max_lsn,