]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: fix peer no missing optimization
authorSage Weil <sage@newdream.net>
Thu, 10 Mar 2011 18:17:24 +0000 (10:17 -0800)
committerSage Weil <sage@newdream.net>
Thu, 10 Mar 2011 18:17:24 +0000 (10:17 -0800)
commit0abf2c9b9bf4156e54b5bb966815b02d26264068
tree4b29b5e7ee7dbb9085a900bb59af57e355f74979
parent99ef6f6c602e569f24f0a5f2b49035b14b0820bc
osd: fix peer no missing optimization

This shortcut was broken: we need to populate peer_missing with missing
objects in terms of the master log, not the peer's log (which may be old
or even divergent).  This shortcut _only_ makes sense when the peer has
no missing in terms of a log that is perfectly up to date (i.e. matches
our last_update).

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