From 0ca43d834cd737b2565b79b1de5c7d8cfc92510d Mon Sep 17 00:00:00 2001 From: Kevin Dalley Date: Thu, 5 Jun 2014 16:48:21 -0700 Subject: [PATCH] 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 --- doc/rados/api/librados-intro.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/rados/api/librados-intro.rst b/doc/rados/api/librados-intro.rst index e9d148d8377df..c120ec9fe9072 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); -- 2.39.5