From: Samuel Just Date: Wed, 2 Apr 2014 21:22:15 +0000 (-0700) Subject: ReplicatedPG::_verify_no_head_clones: missing implies that the clone exists X-Git-Tag: v0.80-rc1~93^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5f680f9011faedbc38b3f243804c9a7ee4be3630;p=ceph.git ReplicatedPG::_verify_no_head_clones: missing implies that the clone exists Fixes: #7659 Signed-off-by: Samuel Just --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index b52cf443d41..d24a753cb69 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -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 "