]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG::find_object_context: check obs.exists on clone obc before checking...
authorSamuel Just <sam.just@inktank.com>
Sun, 6 Apr 2014 18:22:04 +0000 (11:22 -0700)
committerSamuel Just <sam.just@inktank.com>
Mon, 7 Apr 2014 20:51:17 +0000 (13:51 -0700)
Fixes: #7858
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.cc

index 0fc846156e4c15b022dc75eb8f036c68bc5c646c..be5eaa51b0ad81bb5243ca798a35d68e3ae46d0e 100644 (file)
@@ -6995,7 +6995,7 @@ int ReplicatedPG::find_object_context(const hobject_t& oid,
   }
 
   ObjectContextRef obc = get_object_context(soid, false);
-  if (!obc) {
+  if (!obc || !obc->obs.exists) {
     dout(20) << __func__ << " missing clone " << soid << dendl;
     if (pmissing)
       *pmissing = soid;