From: David Zafman Date: Sat, 5 Apr 2014 02:07:32 +0000 (-0700) Subject: osd: Fix appending write to return any error back to caller X-Git-Tag: v0.80-rc1~59^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2e8035fabce6842bea79703d4da09e024698a929;p=ceph.git osd: Fix appending write to return any error back to caller Also, correct double bumping of num_writes Signed-off-by: David Zafman --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 30e3f15cbc79..a5b856b006f8 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;