diff options
Diffstat (limited to 'src/os_posix/os_open.c')
-rw-r--r-- | src/os_posix/os_open.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/os_posix/os_open.c b/src/os_posix/os_open.c index fd321b7759c..b8d1d8abfe9 100644 --- a/src/os_posix/os_open.c +++ b/src/os_posix/os_open.c @@ -147,6 +147,11 @@ __wt_open(WT_SESSION_IMPL *session, fh->fd = fd; fh->refcnt = 1; +#ifdef O_DIRECT + if (f & O_DIRECT) + fh->direct_io = 1; +#endif + /* Set the file's size. */ WT_ERR(__wt_filesize(session, fh, &fh->file_size)); |