Skip to content

Commit

Permalink
MB-57682: Write to INI file atomically.
Browse files Browse the repository at this point in the history
Modify file2:write to always use misc:atomic_write_file.

Change-Id: Ia60e7bc59201ba327b2981d09411413670927720
Reviewed-on: https://review.couchbase.org/c/couchdb/+/193326
Reviewed-by: Hareen Kancharla <hareen.kancharla@couchbase.com>
Tested-by: Neelima Premsankar <neelima.premsankar@couchbase.com>
  • Loading branch information
neelima32 committed Jul 11, 2023
1 parent 3e97187 commit 4658499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/couchdb/file2.erl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ read_file(Filepath) ->


write_file(Filepath, Bytes) ->
do_file_op(file, write_file, [Filepath, Bytes]).
do_file_op(misc, atomic_write_file, [Filepath, Bytes]).


read_file_info(Filepath) ->
Expand Down

0 comments on commit 4658499

Please sign in to comment.