From: Kevin Dalley Date: Thu, 5 Jun 2014 23:48:21 +0000 (-0700) Subject: doc: Use write_full for C++ example X-Git-Tag: v0.83~125^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1926%2Fhead;p=ceph.git doc: Use write_full for C++ example 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 --- diff --git a/doc/rados/api/librados-intro.rst b/doc/rados/api/librados-intro.rst index e9d148d8377..c120ec9fe90 100644 --- a/doc/rados/api/librados-intro.rst +++ b/doc/rados/api/librados-intro.rst @@ -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);