]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG::recover_backfill: adjust last_backfill to HEAD if snapdir
authorSamuel Just <sam.just@inktank.com>
Sat, 2 Nov 2013 20:54:51 +0000 (13:54 -0700)
committerSamuel Just <sam.just@inktank.com>
Mon, 4 Nov 2013 19:08:19 +0000 (11:08 -0800)
commit545135f3e1c75318940caa2c82ac32a53fc4f957
treecd5e123857d06d3dec326e43b377023525840fc4
parent5687a18d9155b25d9a458cedae56981a65557a4b
ReplicatedPG::recover_backfill: adjust last_backfill to HEAD if snapdir

Otherwise, if last_backfill_started is a snapdir, we will fail to send a
transaction for a client IO creating the head object and removing the
snapdir object.  The result will be that head will eventually be
backfilled, but the snapdir object will erroneously not be removed.

Fixes: #6685
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
src/common/hobject.h
src/osd/ReplicatedPG.cc