]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG: use reply_ctx() directly if fail to find ObjectContext
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 23 May 2016 07:21:17 +0000 (15:21 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 23 May 2016 07:21:17 +0000 (15:21 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/ReplicatedPG.cc

index 8b3da574699337fe532d3cb394e7d8ea647ba2b4..a82fab7d6edcb82fa652cab5aea793ea0fa0fcf2 100644 (file)
@@ -2078,8 +2078,7 @@ void ReplicatedPG::do_op(OpRequestRef& op)
 
   if (r) {
     dout(20) << __func__ << " returned an error: " << r << dendl;
-    close_op_ctx(ctx);
-    osd->reply_op_error(op, r);
+    reply_ctx(ctx, r);
     return;
   }