Revision 73843aa6361bab52b10299b9a45b5f5d85c4752b authored by Siying Dong on 19 November 2016, 03:17:25 UTC, committed by Facebook Github Bot on 19 November 2016, 03:24:13 UTC
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
1 parent 9d60151
File | Mode | Size |
---|---|---|
.gitignore | -rw-r--r-- | 155 bytes |
Makefile | -rw-r--r-- | 2.1 KB |
README.md | -rw-r--r-- | 120 bytes |
c_simple_example.c | -rw-r--r-- | 2.3 KB |
column_families_example.cc | -rw-r--r-- | 2.0 KB |
compact_files_example.cc | -rw-r--r-- | 5.7 KB |
compaction_filter_example.cc | -rw-r--r-- | 2.8 KB |
optimistic_transaction_example.cc | -rw-r--r-- | 4.1 KB |
options_file_example.cc | -rw-r--r-- | 4.0 KB |
rocksdb_option_file_example.ini | -rw-r--r-- | 4.6 KB |
simple_example.cc | -rw-r--r-- | 1.4 KB |
transaction_example.cc | -rw-r--r-- | 4.2 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...