]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
objecter: add stat ops to op vector!
authorSage Weil <sage@newdream.net>
Wed, 18 Jan 2012 05:31:56 +0000 (21:31 -0800)
committerSage Weil <sage@newdream.net>
Wed, 18 Jan 2012 05:31:56 +0000 (21:31 -0800)
They work better that way.

Signed-off-by: Sage Weil <sage@newdream.net>
src/osdc/Objecter.h

index 94abea0fe1ac99fe72d4f1091760a3c3c879f43e..8f4f0b38b9f97d9936ebdc87d124a99b83a45828 100644 (file)
@@ -200,6 +200,7 @@ struct ObjectOperation {
     }
   };
   void stat(uint64_t *psize, utime_t *pmtime, int *prval) {
+    add_op(CEPH_OSD_OP_STAT);
     unsigned p = ops.size() - 1;
     C_ObjectOperation_stat *h = new C_ObjectOperation_stat(psize, pmtime, NULL);
     out_bl[p] = &h->bl;
@@ -207,6 +208,7 @@ struct ObjectOperation {
     out_rval[p] = prval;
   }
   void stat(uint64_t *psize, time_t *ptime, int *prval) {
+    add_op(CEPH_OSD_OP_STAT);
     unsigned p = ops.size() - 1;
     C_ObjectOperation_stat *h = new C_ObjectOperation_stat(psize, NULL, ptime);
     out_bl[p] = &h->bl;