summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2011-05-16 22:08:12 +0100
committerMatthew Sackman <matthew@rabbitmq.com>2011-05-16 22:08:12 +0100
commit0f8036e4033344956fc67b4e7b90eafa06772b41 (patch)
tree24bc6be8c79bf0a5ef973330ba7db6836727bcd1
parenteab4f184888594013db25bc6a69d12488f1d19ed (diff)
downloadrabbitmq-server-git-0f8036e4033344956fc67b4e7b90eafa06772b41.tar.gz
Added origination comment
-rw-r--r--src/rabbit_misc.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl
index c52e817b21..a37f5dcc29 100644
--- a/src/rabbit_misc.erl
+++ b/src/rabbit_misc.erl
@@ -523,6 +523,10 @@ write_term_file(File, Terms) ->
write_file(Path, Data) ->
write_file(Path, Data, []).
+%% write_file/3 is based on the implementation 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(Path, Data, Modes) ->
Modes1 = [binary, write | (Modes -- [binary, write])],
case make_binary(Data) of