Skip to content

Commit

Permalink
Ensure directory present for lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsumner committed Mar 17, 2020
1 parent 38a9046 commit 756ce01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/riak_kv_leveled_backend.erl
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ start(Partition, Config) ->
{true, true} ->
{ok, recalc};
{true, false} ->
ok = filelib:ensure_dir(FN),
ok = file:write_file(FN, term_to_binary(os:timestamp())),
{ok, recalc};
{false, true} ->
Expand Down

0 comments on commit 756ce01

Please sign in to comment.