Lei Jin 7e9f28cb23 limit max bytes that can be read/written per pread/write syscall
Summary:
BlockBasedTable sst file size can grow to a large size when universal
compaction is used. When index block exceeds 2G, pread seems to fail and
return truncated data and causes "trucated block" error. I tried to use
```
  #define _FILE_OFFSET_BITS 64
```
But the problem still persists. Splitting a big write/read into smaller
batches seems to solve the problem.

Test Plan:
successfully compacted a case with resulting sst file at ~90G (2.1G
index block size)

Reviewers: yhchiang, igor, sdong

Reviewed By: sdong

Subscribers: leveldb

Differential Revision: https://reviews.facebook.net/D22569
2014-08-29 21:21:49 -07:00
..
2014-08-14 17:01:20 -07:00
2014-05-08 13:50:49 -07:00
2014-04-15 13:39:26 -07:00
2014-04-15 13:39:26 -07:00
2014-05-09 08:41:02 -07:00
2014-08-11 13:22:47 -04:00
2014-05-02 16:24:04 -04:00
2014-05-02 16:24:04 -04:00
2014-08-19 09:52:54 -04:00
2014-08-19 06:48:21 -07:00
2014-08-19 06:48:21 -07:00
2014-04-04 14:03:19 -07:00
2014-05-21 07:54:22 -04:00
2014-07-08 12:31:49 -07:00
2014-03-03 21:11:49 -08:00
2014-08-11 13:22:47 -04:00
2014-01-17 12:46:06 -08:00
2014-01-17 12:46:06 -08:00
2014-08-28 12:46:05 -04:00
2014-08-28 12:46:05 -04:00
2014-03-21 15:32:48 -07:00
2014-05-14 12:13:50 -07:00
2014-05-14 12:13:50 -07:00
2014-08-26 14:15:00 -07:00
2014-04-08 10:58:07 -07:00
2014-07-25 15:17:06 -07:00
2014-07-25 15:17:06 -07:00
2014-07-31 20:52:13 -07:00
2014-07-28 12:10:49 -07:00
2013-12-03 12:42:15 -08:00
2014-07-28 12:22:37 -07:00
2014-04-09 21:17:14 -07:00
2014-04-09 21:17:14 -07:00
2014-04-17 14:29:28 -07:00
2014-04-25 09:50:51 -04:00
2014-08-27 11:05:41 -07:00
2014-05-01 14:09:32 -04:00
2014-05-01 14:09:32 -04:00