summaryrefslogtreecommitdiff
path: root/src/conn/conn_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conn/conn_api.c')
-rw-r--r--src/conn/conn_api.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/conn/conn_api.c b/src/conn/conn_api.c
index 7aabd88ba90..b41cad25914 100644
--- a/src/conn/conn_api.c
+++ b/src/conn/conn_api.c
@@ -1494,7 +1494,8 @@ __conn_write_base_config(WT_SESSION_IMPL *session, const char *cfg[])
if (exist)
return (0);
- WT_RET(__wt_fopen(session, WT_BASECONFIG_SET, WT_FOPEN_WRITE, 0, &fp));
+ WT_RET(__wt_fopen(session,
+ WT_BASECONFIG_SET, WT_FHANDLE_WRITE, 0, &fp));
fprintf(fp, "%s\n\n",
"# Do not modify this file.\n"
@@ -1551,7 +1552,7 @@ __conn_write_base_config(WT_SESSION_IMPL *session, const char *cfg[])
session, &fp, WT_BASECONFIG_SET, WT_BASECONFIG));
/* Close any file handle left open, remove any temporary file. */
-err: WT_TRET(__wt_fclose(session, &fp, WT_FCLOSE_WRITE));
+err: WT_TRET(__wt_fclose(session, &fp, WT_FHANDLE_WRITE));
WT_TRET(__wt_remove_if_exists(session, WT_BASECONFIG_SET));
return (ret);