diff options
author | Radoslaw Zarzynski <rzarzyns@redhat.com> | 2020-02-04 22:31:07 +0100 |
---|---|---|
committer | Radoslaw Zarzynski <rzarzyns@redhat.com> | 2020-02-04 22:34:14 +0100 |
commit | 585c823720692bdcca37a2d4e5444c2c333b533a (patch) | |
tree | a56099a91fca31ccf5e63c205e7830b01b5559cc /examples/librados | |
parent | Merge pull request #30033 from theanalyst/rgw/public-buckets (diff) | |
download | ceph-585c823720692bdcca37a2d4e5444c2c333b533a.tar.xz ceph-585c823720692bdcca37a2d4e5444c2c333b533a.zip |
examples/librados: fix bufferlist::copy() in hello_world.cc.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Diffstat (limited to 'examples/librados')
-rw-r--r-- | examples/librados/hello_world.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/librados/hello_world.cc b/examples/librados/hello_world.cc index 33825db6822..759e26966e9 100644 --- a/examples/librados/hello_world.cc +++ b/examples/librados/hello_world.cc @@ -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; } |