]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
PG: use remove_object_with_snap_hardlinks for divergent objects
authorSamuel Just <sam.just@inktank.com>
Fri, 2 Nov 2012 20:02:15 +0000 (13:02 -0700)
committerSage Weil <sage@inktank.com>
Sun, 4 Nov 2012 14:16:18 +0000 (06:16 -0800)
commit7e264678a9324fc247f29fcad1b1cf4ac818dd3b
tree8fd58496280f6b220109e47a2911df52fe749b13
parentc435d314caeb5424c1f4482ad02f8a085317ad5b
PG: use remove_object_with_snap_hardlinks for divergent objects

Otherwise, we end up leaving snap hardlinks in the snapshot
index directories.  This eventually results in an EEXIST error
when we attempt to re-link the clone into place during
recovery.

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/osd/PG.cc
src/osd/PG.h
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h