diff options
| author | Matthew Sackman <matthew@rabbitmq.com> | 2010-11-25 14:52:18 +0000 |
|---|---|---|
| committer | Matthew Sackman <matthew@rabbitmq.com> | 2010-11-25 14:52:18 +0000 |
| commit | 8b4a67718dfca44b5815b7e2a1bfbab59a66764b (patch) | |
| tree | b0284cb341f7684c7e9da042169d87b6fd2f4bca | |
| parent | 5b206268023a544aec79aba288406372bb793d3a (diff) | |
| download | rabbitmq-server-git-8b4a67718dfca44b5815b7e2a1bfbab59a66764b.tar.gz | |
No need to open these files at all exclusive. Which is an R14ism anyway.
| -rw-r--r-- | src/rabbit_queue_index.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit_queue_index.erl b/src/rabbit_queue_index.erl index 248c1fbc98..62ff725aa5 100644 --- a/src/rabbit_queue_index.erl +++ b/src/rabbit_queue_index.erl @@ -1042,7 +1042,7 @@ transform_file(Path, Fun) -> Size = filelib:file_size(Path), {ok, PathTmpHdl} = - file_handle_cache:open(PathTmp, [exclusive | ?WRITE_MODE], + file_handle_cache:open(PathTmp, ?WRITE_MODE, [{write_buffer, infinity}]), {ok, PathHdl} = @@ -1063,3 +1063,4 @@ drive_transform_fun(Fun, Hdl, Contents) -> ok = file_handle_cache:append(Hdl, Output), drive_transform_fun(Fun, Hdl, Contents1) end. +rr |
