]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: include return code in OSDOp
authorSage Weil <sage.weil@dreamhost.com>
Thu, 12 Jan 2012 23:43:43 +0000 (15:43 -0800)
committerSage Weil <sage.weil@dreamhost.com>
Thu, 12 Jan 2012 23:44:33 +0000 (15:44 -0800)
This will expose the per-operation return values to the caller.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/osd/osd_types.h

index acc66e27e65218af005a4cfdb19c6e8dc04b33e2..3bbe64762dfc54e45405d811b2a5a552caf6b243 100644 (file)
@@ -1302,10 +1302,12 @@ WRITE_CLASS_ENCODER(ScrubMap)
 
 struct OSDOp {
   ceph_osd_op op;
-  bufferlist indata, outdata;
   sobject_t soid;
 
-  OSDOp() {
+  bufferlist indata, outdata;
+  int32_t rval;
+
+  OSDOp() : rval(0) {
     memset(&op, 0, sizeof(ceph_osd_op));
   }
 };