Siying Dong 73843aa636 Direct I/O Reads Handle the last sector correctly.
Summary:
Currently, in the Direct I/O read mode, the last sector of the file, if not full, is not handled correctly. If the return value of pread is not multiplier of kSectorSize, we still go ahead and continue reading, even if the buffer is not aligned. With the commit, if the return value is not multiplier of kSectorSize, and all but the last sector has been read, we simply return.
Closes https://github.com/facebook/rocksdb/pull/1550

Differential Revision: D4209609

Pulled By: lightmark

fbshipit-source-id: cb0b439
2016-11-18 19:24:13 -08:00
..
2016-08-19 12:28:19 -07:00
2016-08-31 08:56:34 -07:00
2016-08-19 12:28:19 -07:00
2016-11-14 22:54:17 -08:00
2016-09-13 12:08:22 -07:00
2016-05-06 17:42:50 -07:00
2016-03-11 22:56:25 -08:00
2016-03-15 11:38:15 -07:00
2016-11-09 15:09:18 -08:00
2016-02-17 20:22:40 +08:00
2016-10-29 16:09:18 -07:00
2016-09-01 13:50:39 -07:00
2016-09-01 13:50:39 -07:00
2016-06-10 16:37:36 -07:00
2016-04-01 11:06:06 -07:00
2016-09-02 17:10:28 -07:00