]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
examples/librados: fix bufferlist::copy() in hello_world.cc. 33075/head
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 4 Feb 2020 21:31:07 +0000 (22:31 +0100)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 4 Feb 2020 21:34:14 +0000 (22:34 +0100)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
examples/librados/hello_world.cc

index 33825db68229ab02b12401e6573b8fae2bda1563..759e26966e9e7b0005cfef1174eb0c913f006566 100644 (file)
@@ -169,7 +169,7 @@ int main(int argc, const char **argv)
     std::cout << "we read our object " << object_name
               << ", and got back " << ret << " bytes with contents\n";
     std::string read_string;
-    read_buf.copy(0, ret, read_string);
+    read_buf.begin().copy(ret, read_string);
     std::cout << read_string << std::endl;
   }