diff options
author | Susan LoVerso <sue@wiredtiger.com> | 2013-06-19 16:24:25 -0400 |
---|---|---|
committer | Susan LoVerso <sue@wiredtiger.com> | 2013-06-19 16:24:25 -0400 |
commit | 17411239f26e824e0ec1f17987c80f8aa12d4f81 (patch) | |
tree | e8497e489acb7e7841e2297045a93744939d01af /src/conn/conn_log.c | |
parent | 6125882a833653a09dcfdf2b3c2ae702b02ae8d7 (diff) | |
download | mongo-17411239f26e824e0ec1f17987c80f8aa12d4f81.tar.gz |
Add a couple new stats. Changes to handle direct_io.
Diffstat (limited to 'src/conn/conn_log.c')
-rw-r--r-- | src/conn/conn_log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conn/conn_log.c b/src/conn/conn_log.c index 9b7f995f264..b111a5b249c 100644 --- a/src/conn/conn_log.c +++ b/src/conn/conn_log.c @@ -164,7 +164,7 @@ __wt_logger_create(WT_CONNECTION_IMPL *conn, const char *cfg[]) __wt_spin_init(session, &log->log_lock); __wt_spin_init(session, &log->log_slot_lock); if (FLD_ISSET(conn->direct_io, WT_FILE_TYPE_LOG)) - log->allocsize = LOG_ALIGN_DIRECTIO; + log->allocsize = WT_MAX(conn->buffer_alignment, LOG_ALIGN); else log->allocsize = LOG_ALIGN; INIT_LSN(&log->alloc_lsn); |