summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2010-02-17 23:38:06 +0100
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2010-02-17 23:38:06 +0100
commit00c855d030123dcdced313aa388fecf5740a8a35 (patch)
tree3889bd929f5a2a086d26c5311ad3c40bf2eeb3b2
parentb0dfd233ae6b53782914f48366b4438842cb2d21 (diff)
Update comment for filelib:ensure_dir/1 wrapper.
The wrapper can now be removed as I've fixed the problem in R13B04.
-rw-r--r--src/rebar_utils.erl9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl
index 32a2261..bfe7bce 100644
--- a/src/rebar_utils.erl
+++ b/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 ->