Skip to content

Commit

Permalink
Refresh connections in workers correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 22, 2015
1 parent 317cb6c commit 9f3b557
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/droonga/supervisor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ def stop_immediately
end
end

def refresh_node_reference
@worker_runners.each do |worker_runner|
worker_runner.refresh_node_reference
end
end

private
def log_tag
"supervisor"
Expand Down Expand Up @@ -139,6 +145,10 @@ def stop_immediately
@supervisor.stop_immediately
end

def refresh_node_reference
@supervisor.refresh_node_reference
end

def success?
@success
end
Expand Down

0 comments on commit 9f3b557

Please sign in to comment.