]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "rgw/aio: fix recursion from tracing changes"
authorYuval Lifshitz <ylifshit@redhat.com>
Sun, 30 Apr 2023 13:29:55 +0000 (13:29 +0000)
committerYuval Lifshitz <ylifshit@redhat.com>
Sun, 30 Apr 2023 13:29:55 +0000 (13:29 +0000)
This reverts commit 9f160e4f1aa385f39f1cd55eb42f278c94dfd85c.

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
src/rgw/rgw_aio.cc

index 7e1b6a92c3f100c5f751719b74ef7a4cba367e38..c90841dbb7b0c7c06d45647a23530d7b9eb4c5c7 100644 (file)
@@ -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, 0, trace_ctx);
+        r.result = ctx.aio_operate(r.obj.oid, s->c, &op, 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>(op),
                         y.get_io_context(), y.get_yield_context(), trace_ctx);
   }
-  return aio_abstract(std::move(ctx), std::forward<Op>(op), trace_ctx);
+  return aio_abstract(std::move(ctx), std::forward<Op>(op), null_yield, trace_ctx);
 }
 
 } // anonymous namespace