]> 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)
committersdong <siying.d@fb.com>
Wed, 22 Feb 2017 23:59:17 +0000 (15:59 -0800)
commit3eb69567287c18feaef2163e2c91c6a37e989822
tree25a866d375da39e39ad18a1cc5bb7c0ac4bcb25f
parent18ba3e2edd36cf7666d054f0f3bfa8190594c6f4
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