Skip to content

Commit

Permalink
Merge pull request discoproject#264 from jamii/master
Browse files Browse the repository at this point in the history
Fixes regressions in temp_gc which prevent purged jobs from being deleted
  • Loading branch information
Ville Tuulos committed Sep 22, 2011
2 parents efffdf3 + 09a1deb commit 2b25dfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion master/src/node_mon.erl
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ is_master(Host) ->

-spec start_temp_gc(node()) -> pid().
start_temp_gc(Node) ->
spawn_link(Node, temp_gc, start_link, [whereis(disco_server)]).
spawn_link(Node, temp_gc, start_link, [node(whereis(disco_server))]).

-spec start_lock_server(node()) -> pid().
start_lock_server(Node) ->
Expand Down
2 changes: 1 addition & 1 deletion master/src/temp_gc.erl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ get_jobs() ->
-spec process_dir([string()], gb_set(), gb_set()) -> 'ok'.
process_dir([], _Purged, _Active) -> ok;
process_dir([Dir|R], Purged, Active) ->
Path = disco:data_path(node, Dir),
Path = disco:data_path(node(), Dir),
{ok, Jobs} = prim_file:list_dir(Path),
_ = [process_job(filename:join(Path, Job), Purged) ||
Job <- Jobs, ifdead(Job, Active)],
Expand Down

0 comments on commit 2b25dfc

Please sign in to comment.