]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: allow whiteout deletion with IGNORE_CACHE flag
authorSage Weil <sage@redhat.com>
Fri, 14 Nov 2014 06:32:20 +0000 (22:32 -0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 29 Sep 2015 13:10:05 +0000 (15:10 +0200)
commitb134a629863b4601892db03d7c4377040d556bdd
tree842a55a87661fd31fe7879ebb444a9ab099a1469
parentecabc6796f19c03947bb5b14da4e1b761ff8847f
osd/ReplicatedPG: allow whiteout deletion with IGNORE_CACHE flag

If the client specifies IGNORE_CACHE, allow a regular DELETE to zap a
whiteout.  Expand test case to verify this works.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 34e4d24)

    Conflicts:
        src/test/librados/tier.cc
            replaced NObjectIterator -> ObjectIterator
            replaced cache_ioctx.nobjects_begin -> cache_ioctx.objects_begin
            replaced cache_ioctx.nobjects_end -> cache_ioctx.objects_end
            replace it->get_oid() with it->first for it of type ObjectIterator
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h
src/test/librados/tier.cc