Skip to content

Commit

Permalink
Fsync after writing WiredTiger file. #1775
Browse files Browse the repository at this point in the history
  • Loading branch information
sueloverso committed Mar 18, 2015
1 parent 579eff0 commit 8723e7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/conn/conn_api.c
Expand Up @@ -1210,6 +1210,7 @@ __conn_single(WT_SESSION_IMPL *session, const char *cfg[])
len = (size_t)snprintf(buf, sizeof(buf),
"%s\n%s\n", WT_WIREDTIGER, WIREDTIGER_VERSION_STRING);
WT_ERR(__wt_write(session, fh, (wt_off_t)0, len, buf));
WT_ERR(__wt_fsync(session, fh));

conn->is_new = 1;
} else {
Expand Down

0 comments on commit 8723e7c

Please sign in to comment.