From 0541814930131f23150613c253174fe91b06a035 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 5 Sep 2019 11:08:13 -0500 Subject: [PATCH] osd/PrimaryLogPG: pass TMAPGET errors up If the TMAPGET gets a read error, we want to pass that up, instead of silently ignoring it. Signed-off-by: Sage Weil --- src/osd/PrimaryLogPG.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index aad2dfabc4ba4..127714aabf563 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -7057,7 +7057,7 @@ int PrimaryLogPG::do_osd_ops(OpContext *ctx, vector& 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; -- 2.39.5