瀏覽代碼

Update comment for filelib:ensure_dir/1 wrapper.

The wrapper can now be removed as I've fixed the problem in R13B04.
pull/3/head
Tuncer Ayaz 15 年之前
父節點
當前提交
00c855d030
共有 1 個檔案被更改,包括 1 行新增8 行删除
  1. +1
    -8
      src/rebar_utils.erl

+ 1
- 8
src/rebar_utils.erl 查看文件

@ -96,14 +96,7 @@ now_str() ->
lists:flatten(io_lib:format("~4b/~2..0b/~2..0b ~2..0b:~2..0b:~2..0b",
[Year, Month, Day, Hour, Minute, Second])).
%% TODO: Review why filelib:ensure_dir/1 sometimes returns {error, eexist}.
%% There appears to be a race condition when calling ensure_dir from
%% multiple processes simultaneously.
%% This does not happen with -j1 but with anything higher than that.
%% So -j2 or default jobs setting will reveal the issue.
%% To reproduce make sure that the priv/mibs directory does not exist
%% $ rm -r priv
%% $ ./rebar -v compile
%% TODO: filelib:ensure_dir/1 corrected in R13B04. Can be removed.
ensure_dir(Path) ->
case filelib:ensure_dir(Path) of
ok ->

Loading…
取消
儲存