From: Mark Kampe Date: Wed, 23 Nov 2011 23:56:52 +0000 (-0800) Subject: corrected variable (con) to be consistent with prior examples (cluster) X-Git-Tag: v0.39~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=30def38d21b217f244db74e6c469598d794fa8a1;p=ceph-ci.git corrected variable (con) to be consistent with prior examples (cluster) Signed-off-by: Mark Kampe --- diff --git a/doc/api/librados.rst b/doc/api/librados.rst index 71aec121462..315cf91ff6c 100644 --- a/doc/api/librados.rst +++ b/doc/api/librados.rst @@ -31,7 +31,7 @@ Then you open an "IO context", a :c:type:`rados_ioctx_t`, with :c:func:`rados_io err = rados_ioctx_create(cluster, poolname, &io); if (err < 0) { fprintf(stderr, "%s: cannot open rados pool %s: %s\n", argv[0], poolname, strerror(-err)); - rados_shutdown(conn); + rados_shutdown(cluster); exit(1); } @@ -45,14 +45,14 @@ write into an object called ``greeting`` with if (err < 0) { fprintf(stderr, "%s: cannot write pool %s: %s\n", argv[0], poolname, strerror(-err)); rados_ioctx_destroy(io); - rados_shutdown(conn); + rados_shutdown(cluster); exit(1); } In the end, you'll want to close your IO context and connection to RADOS with :c:func:`rados_ioctx_destroy()` and :c:func:`rados_shutdown()`:: rados_ioctx_destroy(io); - rados_shutdown(conn); + rados_shutdown(cluster);