]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: fix merge_log missing calculation at split point when logs diverge
authorHenry Chang <henry.cy.chang@gmail.com>
Thu, 10 Mar 2011 17:44:22 +0000 (09:44 -0800)
committerSage Weil <sage@newdream.net>
Thu, 10 Mar 2011 17:44:22 +0000 (09:44 -0800)
commit62054fdb62813672b13d8f9210129d6b4e77add1
tree8994b0e44cf6dcb2f7f44db0af83124334db3cbf
parentcf6b1de4a692ca0f3e86a600bcf4642723ccade7
osd: fix merge_log missing calculation at split point when logs diverge

If primary log is something like

 1'1
 1'2
 1'3

and remote log is

 1'1
 1'2
 2'3
 2'4
 2'5

Then 1'2 is the split point, but we should advance p because it exists in both
logs.  Comparing to log.head is not a sufficient check for that.

Signed-off-by: Henry Chang <henry.cy.chang@gmail.com>
Signed-off-by: Sage Weil <sage@newdream.net>
src/osd/PG.cc