summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2012-02-28 14:28:31 +1100
committerMichael Cahill <michael.cahill@wiredtiger.com>2012-02-28 14:28:31 +1100
commit47e89ef8891bbc4e0b943764a68c3e20a34058de (patch)
tree17d282e92536781267109bc88b7cbd44991e6595
parent94e2fe05b92d1a79fc95beac00f03b58525f8310 (diff)
downloadmongo-47e89ef8891bbc4e0b943764a68c3e20a34058de.tar.gz
Mark some more buffers as requiring alignment for use with O_DIRECT.
-rw-r--r--src/block/block_read.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/block/block_read.c b/src/block/block_read.c
index 76c56d266c2..4d36a56073e 100644
--- a/src/block/block_read.c
+++ b/src/block/block_read.c
@@ -71,6 +71,7 @@ __wt_block_read(WT_SESSION_IMPL *session, WT_BLOCK *block,
* necessary, there will only be one buffer.
*/
if (block->compressor == NULL) {
+ F_SET(buf, WT_ITEM_ALIGNED);
WT_RET(__wt_buf_init(session, buf, size));
buf->size = size;
dsk = buf->mem;