]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
corrected variable (con) to be consistent with prior examples (cluster)
authorMark Kampe <mark.kampe@dreamhost.com>
Wed, 23 Nov 2011 23:56:52 +0000 (15:56 -0800)
committerMark Kampe <mark.kampe@dreamhost.com>
Wed, 23 Nov 2011 23:56:52 +0000 (15:56 -0800)
Signed-off-by: Mark Kampe <mark.kampe@dreamhost.com>
doc/api/librados.rst

index 71aec121462d26833918d6281e23bf28852aa978..315cf91ff6ce288b213c87263aafa64bfcda2f16 100644 (file)
@@ -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);