]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: Use write_full for C++ example 1926/head
authorKevin Dalley <kevin@kelphead.org>
Thu, 5 Jun 2014 23:48:21 +0000 (16:48 -0700)
committerKevin Dalley <kevin@kelphead.org>
Thu, 5 Jun 2014 23:48:21 +0000 (16:48 -0700)
Latest version of librados uses write_full when writing entire object.

Should the documentation mention that the method "write" used to serve
this function.

Signed-off-by: Kevin Dalley <kevin@kelphead.org>
doc/rados/api/librados-intro.rst

index e9d148d8377dfc92296a0f6420a4d72cc94e5683..c120ec9fe9072c722c39c7e5e9a4e8742b009424 100644 (file)
@@ -676,7 +676,7 @@ C++ Example
                {
                        librados::bufferlist bl;
                        bl.append("Hello World!");
-                       ret = io_ctx.write("hw", bl);
+                       ret = io_ctx.write_full("hw", bl);
                        if (ret < 0) {
                                std::cerr << "Couldn't write object! error " << ret << std::endl;
                                exit(EXIT_FAILURE);