]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cls/user: Un-deprecated version of aio_create_completion
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 1 Nov 2019 18:53:05 +0000 (14:53 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Sat, 2 Nov 2019 05:37:08 +0000 (01:37 -0400)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/cls/user/cls_user_client.cc

index c18be4a2649287fa3cfdefb28e86ab858c8841a8..f68348627350e9af1738026b4763894ff7cd0605 100644 (file)
@@ -148,7 +148,7 @@ int cls_user_get_header_async(IoCtx& io_ctx, string& oid, RGWGetUserHeader_CB *c
   encode(call, in);
   ObjectReadOperation op;
   op.exec("user", "get_header", in, new ClsUserGetHeaderCtx(NULL, ctx, NULL)); /* no need to pass pret, as we'll call ctx->handle_response() with correct error */
-  AioCompletion *c = librados::Rados::aio_create_completion(NULL, NULL, NULL);
+  AioCompletion *c = librados::Rados::aio_create_completion(nullptr, nullptr);
   int r = io_ctx.aio_operate(oid, c, &op, NULL);
   c->release();
   if (r < 0)