From 02d0334ad324cc4ea584584765d41eb181bb54b9 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 22 Oct 2019 15:35:51 +0800 Subject: [PATCH] tools: s/rados_aio_create_completion/rados_aio_create_completion2/ Signed-off-by: Kefu Chai --- src/tools/scratchtool.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tools/scratchtool.c b/src/tools/scratchtool.c index b090df42b1e0b..eced5e132cfb7 100644 --- a/src/tools/scratchtool.c +++ b/src/tools/scratchtool.c @@ -259,8 +259,8 @@ static int testrados(void) /* aio */ rados_completion_t a, b; - rados_aio_create_completion(0, 0, 0, &a); - rados_aio_create_completion(0, 0, 0, &b); + rados_aio_create_completion2(NULL, NULL, &a); + rados_aio_create_completion2(NULL, NULL, &b); rados_aio_write(io_ctx, "a", a, buf, 100, 0); rados_aio_write(io_ctx, "../b/bb_bb_bb\\foo\\bar", b, buf, 100, 0); rados_aio_wait_for_complete(a); @@ -273,7 +273,7 @@ static int testrados(void) /* test flush */ printf("testing aio flush\n"); rados_completion_t c; - rados_aio_create_completion(0, 0, 0, &c); + rados_aio_create_completion2(NULL, NULL, &c); rados_aio_write(io_ctx, "c", c, buf, 100, 0); safe = rados_aio_is_safe(c); printf("a should not yet be safe and ... %s\n", safe ? "is":"is not"); -- 2.39.5