]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "osd: For object op, first check object whether unfound." 4487/head
authorSage Weil <sage@redhat.com>
Tue, 28 Apr 2015 22:19:37 +0000 (15:19 -0700)
committerSage Weil <sage@redhat.com>
Tue, 28 Apr 2015 22:19:37 +0000 (15:19 -0700)
This reverts commit b16b080332616f12852c15cd27e022a83ed86319.

It is normal for objects to be unfound for brief periods of time
after peering--we do not want to EIO in that case.

Fixes: #11464
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/ReplicatedPG.cc

index 015eba0cb409ebdd161410523f9029f2ccb9300b..67693e55e222a3c875f7dcacffa0b432e65ccf90 100644 (file)
@@ -1400,11 +1400,6 @@ void ReplicatedPG::do_op(OpRequestRef& op)
                 CEPH_NOSNAP, m->get_pg().ps(),
                 info.pgid.pool(), m->get_object_locator().nspace);
 
-  if (missing_loc.is_unfound(head)) {
-    dout(10) << "do_op " << head << " is unfound, can't do anything" << dendl;
-    osd->reply_op_error(op, -EIO);
-    return;
-  }
 
   if (write_ordered && scrubber.write_blocked_by_scrub(head)) {
     dout(20) << __func__ << ": waiting for scrub" << dendl;
@@ -1429,11 +1424,6 @@ void ReplicatedPG::do_op(OpRequestRef& op)
   hobject_t snapdir(m->get_oid(), m->get_object_locator().key,
                    CEPH_SNAPDIR, m->get_pg().ps(), info.pgid.pool(),
                    m->get_object_locator().nspace);
-  if (missing_loc.is_unfound(snapdir)) {
-    dout(10) << "do_op " << snapdir << " is unfound, can't do anything" << dendl;
-    osd->reply_op_error(op, -EIO);
-    return;
-  }
   if (is_unreadable_object(snapdir)) {
     wait_for_unreadable_object(snapdir, op);
     return;