]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PrimaryLogPG: do_op: no need to block on missing/degraded snapdir
authorSage Weil <sage@redhat.com>
Thu, 31 Aug 2017 21:22:00 +0000 (17:22 -0400)
committerSage Weil <sage@redhat.com>
Mon, 11 Sep 2017 14:11:29 +0000 (09:11 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PrimaryLogPG.cc

index 40a9843d140578698917f9b9b1a837cdb4975239..abd69aa922bea55eff14db21c172d86288baf092 100644 (file)
@@ -2059,20 +2059,6 @@ void PrimaryLogPG::do_op(OpRequestRef& op)
     return;
   }
 
-  // missing snapdir?
-  hobject_t snapdir = head.get_snapdir();
-
-  if (is_unreadable_object(snapdir)) {
-    wait_for_unreadable_object(snapdir, op);
-    return;
-  }
-
-  // degraded object?
-  if (write_ordered && is_degraded_or_backfilling_object(snapdir)) {
-    wait_for_degraded_object(snapdir, op);
-    return;
-  }
-
   // dup/resent?
   if (op->may_write() || op->may_cache()) {
     // warning: we will get back *a* request for this reqid, but not