]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
buffer: turn off zero-copy reads for now
authorJosh Durgin <josh.durgin@inktank.com>
Mon, 25 Nov 2013 22:37:57 +0000 (14:37 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Mon, 25 Nov 2013 22:38:20 +0000 (14:38 -0800)
Some users will need to be changed to handle getting the correct
length from bufferlist::read_fd.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/common/buffer.cc

index 229625910192f29cf131921afcbf349b0edb3746..24b8182abb43da8ed22291565f763963d5485cdc 100644 (file)
@@ -1504,7 +1504,7 @@ int buffer::list::read_file(const char *fn, std::string *error)
 ssize_t buffer::list::read_fd(int fd, size_t len)
 {
   // try zero copy first
-  if (read_fd_zero_copy(fd, len) == 0) {
+  if (false && read_fd_zero_copy(fd, len) == 0) {
     // TODO fix callers to not require correct read size, which is not
     // available for raw_pipe until we actually inspect the data
     return 0;