]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/buffer: adding pread_file method
authorYuan Zhou <yuan.zhou@intel.com>
Wed, 16 Jan 2019 15:38:26 +0000 (23:38 +0800)
committerYuan Zhou <yuan.zhou@intel.com>
Thu, 21 Mar 2019 16:16:27 +0000 (00:16 +0800)
commit952116012fa4c75e4352cb96ea31134c581f6171
tree430a09bf602a8ab4bd34825df1beeaeb290b92a5
parent342a678f36685af86f41e46f6d904ed530fe232a
common/buffer: adding pread_file method

pread_file allows to read length of contents at a given offset

using pread_file instead of read_file to reduce extra reads in ObjectCacheFile

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
src/common/buffer.cc
src/include/buffer.h
src/tools/immutable_object_cache/ObjectCacheFile.cc