summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2011-05-16 22:31:56 +0100
committerMatthew Sackman <matthew@rabbitmq.com>2011-05-16 22:31:56 +0100
commit4185fcfa5035d0c3301a4868c4f9c00766d2c04d (patch)
tree97587e75fa53b9e16896df13c36cceb7bb816e8c
parent7981ac3166a4cee4f88a346a75ebd6d1c78ce95f (diff)
downloadrabbitmq-server-bug24004.tar.gz
Closer approximation to Englishbug24004
-rw-r--r--src/rabbit_misc.erl9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl
index 9a675fbb..2d433ac2 100644
--- a/src/rabbit_misc.erl
+++ b/src/rabbit_misc.erl
@@ -523,10 +523,11 @@ write_term_file(File, Terms) ->
write_file(Path, Data) ->
write_file(Path, Data, []).
-%% write_file/3 and make_binary/1 is based on the implementation in
-%% the kernel/file.erl file of the Erlang R14B02 release, licensed
-%% under the EPL. That implementation does not do an fsync prior to
-%% closing the file, hence the existence of this version.
+%% write_file/3 and make_binary/1 are both based on corresponding
+%% functions in the kernel/file.erl module of the Erlang R14B02
+%% release, which is licensed under the EPL. That implementation of
+%% write_file/3 does not do an fsync prior to closing the file, hence
+%% the existence of this version. APIs are otherwise identical.
write_file(Path, Data, Modes) ->
Modes1 = [binary, write | (Modes -- [binary, write])],
case make_binary(Data) of