Navigation Menu

Skip to content

Commit

Permalink
Prepare directory to save tags file
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 21, 2015
1 parent 036ba04 commit 4232096
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/droonga/serf.rb
Expand Up @@ -57,11 +57,13 @@ def run_agent(loop)
detect_other_hosts.each do |other_host|
retry_joins.push("-retry-join", other_host)
end
tags_file = self.class.tags_file
FileUtils.mkdir_p(tags_file.dirname)
agent = Agent.new(loop, @serf,
@name.host, agent_port, rpc_port,
"-node", @name.to_s,
"-event-handler", "droonga-engine-serf-event-handler",
"-tags-file", self.class.tags_file.to_s,
"-tags-file", tags_file.to_s,
*retry_joins)
agent.on_ready = lambda do
set_tag("type", "engine")
Expand Down

0 comments on commit 4232096

Please sign in to comment.