From: Sage Weil Date: Tue, 11 Feb 2014 21:43:11 +0000 (-0800) Subject: osd/ReplicatedPG: use reply_ctx in a few cases X-Git-Tag: v0.78~166^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b92c79d2002b2a195d4d7ec2e6ced3a852828955;p=ceph.git osd/ReplicatedPG: use reply_ctx in a few cases Signed-off-by: Sage Weil --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 7a9edd25da19..bceaa172596a 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -1353,8 +1353,7 @@ void ReplicatedPG::do_op(OpRequestRef op) map::iterator p = flush_ops.find(obc->obs.oi.soid); if (p == flush_ops.end()) { dout(10) << __func__ << " no flush in progress, aborting" << dendl; - close_op_ctx(ctx, -EINVAL); - osd->reply_op_error(op, -EINVAL); + reply_ctx(ctx, -EINVAL); return; } } else if (!get_rw_locks(ctx)) { @@ -1368,14 +1367,12 @@ void ReplicatedPG::do_op(OpRequestRef op) // This object is lost. Reading from it returns an error. dout(20) << __func__ << ": object " << obc->obs.oi.soid << " is lost" << dendl; - close_op_ctx(ctx, -ENFILE); - osd->reply_op_error(op, -ENFILE); + reply_ctx(ctx, -ENFILE); return; } if (!op->may_write() && !op->may_cache() && (!obc->obs.exists || obc->obs.oi.is_whiteout())) { - close_op_ctx(ctx, -ENOENT); - osd->reply_op_error(op, -ENOENT); + reply_ctx(ctx, -ENOENT); return; }