]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: use modify flag to decide whether to take read fast path
authorSage Weil <sage@newdream.net>
Mon, 10 Nov 2008 18:55:10 +0000 (10:55 -0800)
committerSage Weil <sage@newdream.net>
Mon, 10 Nov 2008 18:55:10 +0000 (10:55 -0800)
src/osd/ReplicatedPG.cc

index 743fae95964aeab5316e97347a0e75c21b8cd967..6202d55bdf91aec961059ce8ddbc148bf750d8b7 100644 (file)
@@ -112,7 +112,7 @@ bool ReplicatedPG::preprocess_op(MOSDOp *op, utime_t now)
   // we only care about reads here on out..
   if (op->is_modify() ||
       op->ops.size() < 1 ||
-      op->ops[0].op != CEPH_OSD_OP_READ) 
+      op->is_modify())
     return false;
   ceph_osd_op& readop = op->ops[0];