summaryrefslogtreecommitdiff
path: root/src/block
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-11-17 14:34:17 -0500
committerKeith Bostic <keith@wiredtiger.com>2014-11-17 14:34:17 -0500
commite0a219f04c2918aeea69553fc11e6ca06621dfed (patch)
tree12a5514b2fd52322cd66a4194414edd483754ebc /src/block
parentf63276ca9dcb767f8d492dd3e6669cca283d4d85 (diff)
downloadmongo-e0a219f04c2918aeea69553fc11e6ca06621dfed.tar.gz
Explicitly test for WT_FALLOCATE_NOT_AVAILABLE, that way code doesn't
assume a value of 0 means something special and we can use an enum for fallocate_available.
Diffstat (limited to 'src/block')
-rw-r--r--src/block/block_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/block/block_write.c b/src/block/block_write.c
index 0da6380e61f..7c91a28451c 100644
--- a/src/block/block_write.c
+++ b/src/block/block_write.c
@@ -174,7 +174,7 @@ __wt_block_write_off(WT_SESSION_IMPL *session, WT_BLOCK *block,
offset +
fh->extend_len + (wt_off_t)align_size >= fh->extend_size))) {
fh->extend_size = offset + fh->extend_len * 2;
- if (fh->fallocate_available) {
+ if (fh->fallocate_available != WT_FALLOCATE_NOT_AVAILABLE) {
/*
* Release any locally acquired lock if it's not needed
* to extend the file, extending the file might require