diff options
author | Keith Bostic <keith@wiredtiger.com> | 2013-12-17 19:22:56 -0500 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2013-12-17 19:26:47 -0500 |
commit | e3873c395c0a4a7160cfc863900375f0b0e5117b (patch) | |
tree | 290b5a3484981b6591ce97682b57acc75dbecdf1 /src/block/block_slvg.c | |
parent | 0b24b0f95d371855c9d4f6fc98746223551cadca (diff) | |
download | mongo-e3873c395c0a4a7160cfc863900375f0b0e5117b.tar.gz |
Rewrite the read/write loops to handle short returns, POSIX allows short
returns, and Linux splits really large read/writes into multiple chunks.
Change __wt_read to take a size_t as the byte length instead of a uint32_t.
Diffstat (limited to 'src/block/block_slvg.c')
-rw-r--r-- | src/block/block_slvg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/block/block_slvg.c b/src/block/block_slvg.c index 81bf1cc4011..b5fb55d23a2 100644 --- a/src/block/block_slvg.c +++ b/src/block/block_slvg.c @@ -103,7 +103,8 @@ __wt_block_salvage_next(WT_SESSION_IMPL *session, * and get a page length from it. Move to the next allocation * sized boundary, we'll never consider this one again. */ - WT_ERR(__wt_read(session, fh, offset, allocsize, tmp->mem)); + WT_ERR(__wt_read( + session, fh, offset, (size_t)allocsize, tmp->mem)); blk = WT_BLOCK_HEADER_REF(tmp->mem); block->slvg_off += allocsize; |