]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
add use_direct_io() to ReadaheadRandomAccessFile
authorAaron Gao <gzh@fb.com>
Wed, 22 Feb 2017 22:48:09 +0000 (14:48 -0800)
committerAaron Gao <gzh@fb.com>
Fri, 24 Feb 2017 00:44:30 +0000 (16:44 -0800)
commita3576c7c4b3d57af73a2e0a2ea18ff60716bd567
tree2dc4c235be57f10eb159fbfcb86f5cba00a4868b
parent6fa04041de5b1abe7cff4895ae62346d519b4e17
add use_direct_io() to ReadaheadRandomAccessFile

Summary:
Missing this function will cause RandomAccessFileReader not doing alignment in Direct IO mode, which introduce an IOError: invalid argument.
Closes https://github.com/facebook/rocksdb/pull/1900

Differential Revision: D4601261

Pulled By: lightmark

fbshipit-source-id: c3eadf1
util/file_reader_writer.cc