From: Sage Weil Date: Tue, 8 Mar 2016 18:14:33 +0000 (-0500) Subject: os/filestore: make read replace (not append) to result bl X-Git-Tag: v10.1.0~113^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e8b94aec4fdf40ba7c1287cb7f1452bb0316b274;p=ceph.git os/filestore: make read replace (not append) to result bl Signed-off-by: Sage Weil --- diff --git a/src/os/filestore/FileStore.cc b/src/os/filestore/FileStore.cc index 9d0eeac2e3e2..b6bf02b2cb19 100644 --- a/src/os/filestore/FileStore.cc +++ b/src/os/filestore/FileStore.cc @@ -2976,6 +2976,7 @@ int FileStore::read( return got; } bptr.set_length(got); // properly size the buffer + bl.clear(); bl.push_back(std::move(bptr)); // put it in the target bufferlist #ifdef HAVE_POSIX_FADVISE