[Groonga-commit] droonga/droonga-engine at 4232096 [master] Prepare directory to save tags file

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Apr 21 12:23:32 JST 2015


YUKI Hiroshi	2015-04-21 12:23:32 +0900 (Tue, 21 Apr 2015)

  New Revision: 4232096be68a43461284dcd9a17589716582bd44
  https://github.com/droonga/droonga-engine/commit/4232096be68a43461284dcd9a17589716582bd44

  Message:
    Prepare directory to save tags file

  Modified files:
    lib/droonga/serf.rb

  Modified: lib/droonga/serf.rb (+3 -1)
===================================================================
--- lib/droonga/serf.rb    2015-04-21 12:20:07 +0900 (90adb3f)
+++ lib/droonga/serf.rb    2015-04-21 12:23:32 +0900 (12cc587)
@@ -57,11 +57,13 @@ module Droonga
       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")
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index