From 2e8035fabce6842bea79703d4da09e024698a929 Mon Sep 17 00:00:00 2001 From: David Zafman Date: Fri, 4 Apr 2014 19:07:32 -0700 Subject: [PATCH] osd: Fix appending write to return any error back to caller Also, correct double bumping of num_writes Signed-off-by: David Zafman --- src/osd/ReplicatedPG.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 30e3f15cbc7..a5b856b006f 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -3982,7 +3982,6 @@ int ReplicatedPG::do_osd_ops(OpContext *ctx, vector& ops) // -- fancy writers -- case CEPH_OSD_OP_APPEND: - ++ctx->num_write; { // just do it inline; this works because we are happy to execute // fancy op on replicas as well. @@ -3993,7 +3992,7 @@ int ReplicatedPG::do_osd_ops(OpContext *ctx, vector& ops) newop.op.extent.length = op.extent.length; newop.op.extent.truncate_seq = oi.truncate_seq; newop.indata = osd_op.indata; - do_osd_ops(ctx, nops); + result = do_osd_ops(ctx, nops); osd_op.outdata.claim(newop.outdata); } break; -- 2.47.3