]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PrimaryLogPG: pass TMAPGET errors up
authorSage Weil <sage@redhat.com>
Thu, 5 Sep 2019 16:08:13 +0000 (11:08 -0500)
committerSage Weil <sage@redhat.com>
Thu, 5 Sep 2019 17:01:30 +0000 (12:01 -0500)
If the TMAPGET gets a read error, we want to pass that up, instead of
silently ignoring it.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PrimaryLogPG.cc

index aad2dfabc4ba4ae0d78c0d05b6f37804b479b7b0..127714aabf563a2f836be97fe4a36fcc10134315 100644 (file)
@@ -7057,7 +7057,7 @@ int PrimaryLogPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
        newop.op.op = CEPH_OSD_OP_SYNC_READ;
        newop.op.extent.offset = 0;
        newop.op.extent.length = 0;
-       do_osd_ops(ctx, nops);
+       result = do_osd_ops(ctx, nops);
        osd_op.outdata.claim(newop.outdata);
       }
       break;