Merge lp:~gaul/percona-server/purge-changed-page-bitmaps into lp:percona-server/5.6

Proposed by Andrew Gaul
Status: Rejected
Rejected by: Laurynas Biveinis
Proposed branch: lp:~gaul/percona-server/purge-changed-page-bitmaps
Merge into: lp:percona-server/5.6
Diff against target: 23 lines (+11/-2)
1 file modified
Percona-Server/storage/innobase/log/log0online.cc (+11/-2)
To merge this branch: bzr merge lp:~gaul/percona-server/purge-changed-page-bitmaps
Reviewer Review Type Date Requested Status
Laurynas Biveinis (community) Needs Resubmitting
Review via email: mp+198629@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

The fix is being included in a modified form.

review: Needs Resubmitting
Revision history for this message
Andrew Gaul (gaul) wrote :

Unmerged revisions

509. By Andrew Gaul <email address hidden>

Consider end LSN when purging changed page bitmaps

Fixes: https://bugs.launchpad.net/percona-server/+bug/1260035

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Percona-Server/storage/innobase/log/log0online.cc'
--- Percona-Server/storage/innobase/log/log0online.cc 2013-09-25 06:04:21 +0000
+++ Percona-Server/storage/innobase/log/log0online.cc 2013-12-11 18:57:57 +0000
@@ -1797,8 +1797,17 @@
1797 }1797 }
17981798
1799 for (i = 0; i < bitmap_files.count; i++) {1799 for (i = 0; i < bitmap_files.count; i++) {
1800 if (bitmap_files.files[i].seq_num == 01800 /* We consider the end LSN of the current bitmap, derived from
1801 || bitmap_files.files[i].start_lsn >= lsn) {1801 the start LSN of the subsequent bitmap file, to determine
1802 whether to remove the current bitmap. Note that bitmap_files
1803 does not contain an entry for the bitmap past the given LSN so
1804 we must check the boundary conditions as well. For example,
1805 consider 1_0.xdb and 2_10.xdb and querying LSN 5. bitmap_files
1806 will only contain 1_0.xdb and we must not delete it since it
1807 represents LSNs 0-9. */
1808 if (i + 1 == bitmap_files.count
1809 || bitmap_files.files[i + 1].seq_num == 0
1810 || bitmap_files.files[i + 1].start_lsn >= lsn) {
18021811
1803 break;1812 break;
1804 }1813 }

Subscribers

People subscribed via source and target branches