diff options
author | Damien F. Katz <damien@apache.org> | 2010-07-01 20:46:29 +0000 |
---|---|---|
committer | Damien F. Katz <damien@apache.org> | 2010-07-01 20:46:29 +0000 |
commit | c4a2f52b046464fd0a34ac497925ec7b424b7cf6 (patch) | |
tree | a7c20a85b51c14c58525271138ee97d56e94d065 /src | |
parent | 559f1d81b97071ed868e37405da7664096abc49f (diff) |
Fix for windows fsync, race conditions in attachments.js and the default shell used when launching windows CouchDB.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@959781 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/couchdb/couch_file.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_file.erl b/src/couchdb/couch_file.erl index 8c82272d..6671bcc1 100644 --- a/src/couchdb/couch_file.erl +++ b/src/couchdb/couch_file.erl @@ -148,7 +148,7 @@ truncate(Fd, Pos) -> %%---------------------------------------------------------------------- sync(Filepath) when is_list(Filepath) -> - {ok, Fd} = file:open(Filepath, [read, raw]), + {ok, Fd} = file:open(Filepath, [append, raw]), try file:sync(Fd) after file:close(Fd) end; sync(Fd) -> gen_server:call(Fd, sync, infinity). |