Permalink
Browse files

Merge branch 'jdm-remove-temp_file'

  • Loading branch information...
jonmeredith committed Feb 9, 2012
2 parents c71e955 + 77d12ed commit 5ffdbe7bab2b8ed66528168607486f97a1af1699
Showing with 0 additions and 14 deletions.
  1. +0 −14 src/bitcask_fileops.erl
View
@@ -527,17 +527,3 @@ most_recent_tstamp(DirName) ->
lists:foldl(fun({TS,_},Acc) ->
erlang:max(TS, Acc)
end, 0, data_file_tstamps(DirName)).
-
-
-temp_file(Template) ->
- temp_file(Template, now()).
-
-temp_file(Template, Seed0) ->
- {Int, Seed} = random:uniform_s(65536, Seed0),
- Filename = ?FMT(Template, [Int]),
- case bitcask_nifs:file_open(Filename, [create]) of
- {ok, FD} ->
- {ok, FD, Filename};
- {error, eexists} ->
- temp_file(Template, Seed)
- end.

0 comments on commit 5ffdbe7

Please sign in to comment.