doc: fix librados example programs

basically s/rados_wait_for_(safe|complete)/rados_aio_wait_for_\1/g

Signed-off-by: Alexey Sheplyakov <asheplyakov@mirantis.com>
This commit is contained in:
Alexey Sheplyakov 2016-10-04 09:37:35 +03:00
parent 110238608a
commit 5c291855ac
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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`::