summaryrefslogtreecommitdiff
path: root/src/include/extern.h
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2015-04-12 12:44:05 -0400
committerMichael Cahill <michael.cahill@mongodb.com>2015-04-25 12:49:43 +1000
commit10299846914c762d1c72f40c02178dd22e0b688c (patch)
tree9b5a941ae194ff99172a1143d5e1292a561f4c1b /src/include/extern.h
parentc8ef70b364587c23743bd38ebf95436d90f506d3 (diff)
downloadmongo-10299846914c762d1c72f40c02178dd22e0b688c.tar.gz
When using ftruncate as the file-extension call, we must use WT_FH.size
as the starting point of the extension (not offset), and we have to read the size value after acquiring the lock that prevents racing with writers. Split the extension functionality out into a separate function and try to make it a little simpler to understand. Reference #1871.
Diffstat (limited to 'src/include/extern.h')
-rw-r--r--src/include/extern.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/include/extern.h b/src/include/extern.h
index 56f5f65f42f..a259294caff 100644
--- a/src/include/extern.h
+++ b/src/include/extern.h
@@ -71,7 +71,6 @@ extern int __wt_verify_ckpt_load( WT_SESSION_IMPL *session, WT_BLOCK *block, WT_
extern int __wt_verify_ckpt_unload(WT_SESSION_IMPL *session, WT_BLOCK *block);
extern int __wt_block_verify_addr(WT_SESSION_IMPL *session, WT_BLOCK *block, const uint8_t *addr, size_t addr_size);
extern u_int __wt_block_header(WT_BLOCK *block);
-extern int __wt_block_extend(WT_SESSION_IMPL *session, WT_FH *fh, wt_off_t len);
extern int __wt_block_truncate(WT_SESSION_IMPL *session, WT_FH *fh, wt_off_t len);
extern int __wt_block_write_size(WT_SESSION_IMPL *session, WT_BLOCK *block, size_t *sizep);
extern int __wt_block_write(WT_SESSION_IMPL *session, WT_BLOCK *block, WT_ITEM *buf, uint8_t *addr, size_t *addr_sizep, int data_cksum);