summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorMark Kampe <mark.kampe@dreamhost.com>2011-11-23 15:56:52 -0800
committerMark Kampe <mark.kampe@dreamhost.com>2011-11-23 15:56:52 -0800
commit30def38d21b217f244db74e6c469598d794fa8a1 (patch)
tree77faca7356ee80eb9ba798ac5c41b1b198026eca /doc/api
parent934e1e52514b6036c91c1c7db1c8b6727ac8c6d8 (diff)
downloadceph-30def38d21b217f244db74e6c469598d794fa8a1.tar.gz
corrected variable (con) to be consistent with prior examples (cluster)
Signed-off-by: Mark Kampe <mark.kampe@dreamhost.com>
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/librados.rst6
1 files changed, 3 insertions, 3 deletions
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);