From 5c291855ac5c81ce01a22dc4a0dad7b5c52b4097 Mon Sep 17 00:00:00 2001 From: Alexey Sheplyakov Date: Tue, 4 Oct 2016 09:37:35 +0300 Subject: [PATCH] doc: fix librados example programs basically s/rados_wait_for_(safe|complete)/rados_aio_wait_for_\1/g Signed-off-by: Alexey Sheplyakov --- doc/rados/api/librados-intro.rst | 2 +- doc/rados/api/librados.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/rados/api/librados-intro.rst b/doc/rados/api/librados-intro.rst index 99a92ee8cef..c1e1b8bdb3b 100644 --- a/doc/rados/api/librados-intro.rst +++ b/doc/rados/api/librados-intro.rst @@ -649,7 +649,7 @@ C Example } /* Wait for the operation to complete */ - rados_wait_for_complete(comp); + rados_aio_wait_for_complete(comp); /* Release the asynchronous I/O complete handle to avoid memory leaks. */ rados_aio_release(comp); diff --git a/doc/rados/api/librados.rst b/doc/rados/api/librados.rst index 483ef8e6776..a8c7f1854d3 100644 --- a/doc/rados/api/librados.rst +++ b/doc/rados/api/librados.rst @@ -113,8 +113,8 @@ be in memory or on disk on all replicas:: rados_shutdown(cluster); exit(1); } - rados_wait_for_complete(comp); // in memory - rados_wait_for_safe(comp); // on disk + rados_aio_wait_for_complete(comp); // in memory + rados_aio_wait_for_safe(comp); // on disk Finally, we need to free the memory used by the completion with :c:func:`rados_aio_release`:: -- 2.39.5