]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG::_verify_no_head_clones: missing implies that the clone exists 1492/head 1619/head
authorSamuel Just <sam.just@inktank.com>
Wed, 2 Apr 2014 21:22:15 +0000 (14:22 -0700)
committerSamuel Just <sam.just@inktank.com>
Wed, 2 Apr 2014 21:22:17 +0000 (14:22 -0700)
Fixes: #7659
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.cc

index b52cf443d41eab9de47819ddde61a7de2f769079..d24a753cb69902ef0001c12419d1ad34404c75ea 100644 (file)
@@ -4469,6 +4469,8 @@ int ReplicatedPG::_verify_no_head_clones(const hobject_t& soid,
        ++p) {
     hobject_t clone_oid = soid;
     clone_oid.snap = *p;
+    if (is_missing_object(clone_oid))
+      return -EBUSY;
     ObjectContextRef clone_obc = get_object_context(clone_oid, false);
     if (clone_obc && clone_obc->obs.exists) {
       dout(10) << __func__ << " cannot evict head before clone "