]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: include (some) osd op flags in MOSDOp print method
authorSage Weil <sage.weil@dreamhost.com>
Tue, 26 Apr 2011 19:10:33 +0000 (12:10 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Tue, 26 Apr 2011 19:10:33 +0000 (12:10 -0700)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/messages/MOSDOp.h

index 2e97666298fee3bf3eb6e7c1f2a87406ffebee64..ca1d9db56ddc4e71b6dc2a2bc929759a45e3af80 100644 (file)
@@ -349,6 +349,16 @@ struct ceph_osd_request_head {
     if (is_retry_attempt()) out << " RETRY";
     if (get_snap_seq())
       out << " snapc " << get_snap_seq() << "=" << snaps;
+    if (get_flags() & CEPH_OSD_FLAG_ORDERSNAP)
+      out << " ordersnap";
+    if (get_flags() & CEPH_OSD_FLAG_BALANCE_READS)
+      out << " balance_reads";
+    if (get_flags() & CEPH_OSD_FLAG_PARALLELEXEC)
+      out << " parallelexec";
+    if (get_flags() & CEPH_OSD_FLAG_LOCALIZE_READS)
+      out << " localize_reads";
+    if (get_flags() & CEPH_OSD_FLAG_RWORDERED)
+      out << " rwordered";
     out << ")";
   }
 };