]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix PGOP check
authorSage Weil <sage@newdream.net>
Fri, 12 Jun 2009 22:30:05 +0000 (15:30 -0700)
committerSage Weil <sage@newdream.net>
Sat, 13 Jun 2009 00:30:54 +0000 (17:30 -0700)
src/osd/OSD.cc

index 40b6de938113535a62e73e1e4a67b61ca08dc793..0f9e0fa339252fe48133678b5cb6fcfb0440ad83 100644 (file)
@@ -3919,7 +3919,7 @@ void OSD::init_op_flags(MOSDOp *op)
       op->rmw_flags |= CEPH_OSD_FLAG_READ;
 
     // set PGOP flag if there are PG ops
-    if (iter->op.op & CEPH_OSD_OP_TYPE_PG)
+    if (ceph_osd_op_type_pg(iter->op.op))
       op->rmw_flags |= CEPH_OSD_FLAG_PGOP;
 
     switch (iter->op.op) {