summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSusan LoVerso <sue@wiredtiger.com>2015-10-06 17:19:46 -0400
committerSusan LoVerso <sue@wiredtiger.com>2015-10-06 17:19:46 -0400
commit5c0cc8192507cf52f7cda30109b07ba11685602b (patch)
tree0ae8e1fea225f968e480d8adc6746f0ece9915c6
parentd2db4c424dd5513bfd5cf64525914099fc7774fd (diff)
downloadmongo-5c0cc8192507cf52f7cda30109b07ba11685602b.tar.gz
WT-2163 Remove unneeded arg.
-rw-r--r--src/conn/conn_log.c2
-rw-r--r--src/include/extern.h2
-rw-r--r--src/log/log.c7
3 files changed, 5 insertions, 6 deletions
diff --git a/src/conn/conn_log.c b/src/conn/conn_log.c
index a2555ba536f..9068e7e85a2 100644
--- a/src/conn/conn_log.c
+++ b/src/conn/conn_log.c
@@ -260,7 +260,7 @@ __log_prealloc_once(WT_SESSION_IMPL *session)
*/
for (i = reccount; i < (u_int)conn->log_prealloc; i++) {
WT_ERR(__wt_log_allocfile(
- session, ++log->prep_fileid, WT_LOG_PREPNAME, true));
+ session, ++log->prep_fileid, WT_LOG_PREPNAME));
WT_STAT_FAST_CONN_INCR(session, log_prealloc_files);
}
/*
diff --git a/src/include/extern.h b/src/include/extern.h
index c196d550c7e..171f6b02768 100644
--- a/src/include/extern.h
+++ b/src/include/extern.h
@@ -337,7 +337,7 @@ extern int __wt_log_get_all_files(WT_SESSION_IMPL *session, char ***filesp, u_in
extern void __wt_log_files_free(WT_SESSION_IMPL *session, char **files, u_int count);
extern int __wt_log_extract_lognum( WT_SESSION_IMPL *session, const char *name, uint32_t *id);
extern int __wt_log_acquire(WT_SESSION_IMPL *session, uint64_t recsize, WT_LOGSLOT *slot);
-extern int __wt_log_allocfile( WT_SESSION_IMPL *session, uint32_t lognum, const char *dest, bool prealloc);
+extern int __wt_log_allocfile( WT_SESSION_IMPL *session, uint32_t lognum, const char *dest);
extern int __wt_log_remove(WT_SESSION_IMPL *session, const char *file_prefix, uint32_t lognum);
extern int __wt_log_open(WT_SESSION_IMPL *session);
extern int __wt_log_close(WT_SESSION_IMPL *session);
diff --git a/src/log/log.c b/src/log/log.c
index 832f15f4821..efe4d22eeca 100644
--- a/src/log/log.c
+++ b/src/log/log.c
@@ -822,7 +822,7 @@ __log_newfile(WT_SESSION_IMPL *session, bool conn_open, bool *created)
if (create_log) {
log->prep_missed++;
WT_RET(__wt_log_allocfile(
- session, log->fileid, WT_LOG_FILENAME, true));
+ session, log->fileid, WT_LOG_FILENAME));
}
WT_RET(__log_openfile(session,
false, &log->log_fh, WT_LOG_FILENAME, log->fileid));
@@ -973,7 +973,7 @@ err: WT_TRET(__wt_close(session, &log_fh));
*/
int
__wt_log_allocfile(
- WT_SESSION_IMPL *session, uint32_t lognum, const char *dest, bool prealloc)
+ WT_SESSION_IMPL *session, uint32_t lognum, const char *dest)
{
WT_CONNECTION_IMPL *conn;
WT_DECL_ITEM(from_path);
@@ -1005,8 +1005,7 @@ __wt_log_allocfile(
WT_ERR(__log_openfile(session, true, &log_fh, WT_LOG_TMPNAME, tmp_id));
WT_ERR(__log_file_header(session, log_fh, NULL, true));
WT_ERR(__wt_ftruncate(session, log_fh, WT_LOG_FIRST_RECORD));
- if (prealloc)
- WT_ERR(__log_prealloc(session, log_fh));
+ WT_ERR(__log_prealloc(session, log_fh));
WT_ERR(__wt_fsync(session, log_fh));
WT_ERR(__wt_close(session, &log_fh));
WT_ERR(__wt_verbose(session, WT_VERB_LOG,