Commits

Anonymous committed 4ce06e3

(via Martin) do not fail pruning an empty dir

  • Participants
  • Parent commits c51d799

Comments (0)

Files changed (1)

File src/riak_ring_manager.erl

             Cluster = riak:get_app_env(cluster_name),
             case file:list_dir(Dir) of
                 {error,enoent} -> ok;
+                {ok, []} -> ok;
                 {ok, Filenames} ->
                     Timestamps = [TS || {"riak_ring", C1, TS} <- 
                      [list_to_tuple(string:tokens(FN, ".")) || FN <- Filenames],