From: Casey Bodley Date: Tue, 11 Apr 2023 14:49:09 +0000 (-0400) Subject: rgw/aio: fix recursion from tracing changes X-Git-Tag: v19.0.0~1361^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F51031%2Fhead;p=ceph.git rgw/aio: fix recursion from tracing changes Fixes: https://tracker.ceph.com/issues/59423 Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_aio.cc b/src/rgw/rgw_aio.cc index c90841dbb7b0..7e1b6a92c3f1 100644 --- a/src/rgw/rgw_aio.cc +++ b/src/rgw/rgw_aio.cc @@ -58,7 +58,7 @@ Aio::OpFunc aio_abstract(librados::IoCtx ctx, Op&& op, jspan_context* trace_ctx (void)trace_ctx; // suppress unused trace_ctx warning. until we will support the read op trace r.result = ctx.aio_operate(r.obj.oid, s->c, &op, &r.data); } else { - r.result = ctx.aio_operate(r.obj.oid, s->c, &op, trace_ctx); + r.result = ctx.aio_operate(r.obj.oid, s->c, &op, 0, trace_ctx); } if (r.result < 0) { // cb() won't be called, so release everything here @@ -123,7 +123,7 @@ Aio::OpFunc aio_abstract(librados::IoCtx ctx, Op&& op, optional_yield y, jspan_c return aio_abstract(std::move(ctx), std::forward(op), y.get_io_context(), y.get_yield_context(), trace_ctx); } - return aio_abstract(std::move(ctx), std::forward(op), null_yield, trace_ctx); + return aio_abstract(std::move(ctx), std::forward(op), trace_ctx); } } // anonymous namespace