Kouhei Sutou
null+****@clear*****
Tue Jun 24 16:05:33 JST 2014
Kouhei Sutou 2014-06-24 16:05:33 +0900 (Tue, 24 Jun 2014) New Revision: 5f5bc60fc3a061a77d17fba96055759947fb646a https://github.com/droonga/droonga-engine/commit/5f5bc60fc3a061a77d17fba96055759947fb646a Message: Ensure state directory Modified files: lib/droonga/command/serf_event_handler.rb Modified: lib/droonga/command/serf_event_handler.rb (+1 -0) =================================================================== --- lib/droonga/command/serf_event_handler.rb 2014-06-24 15:58:15 +0900 (bf4b96a) +++ lib/droonga/command/serf_event_handler.rb 2014-06-24 16:05:33 +0900 (5521348) @@ -72,6 +72,7 @@ module Droonga list_path = Path.live_nodes nodes = live_nodes file_contents = JSON.pretty_generate(nodes) + FileUtils.mkdir_p(list_path.parent.to_s) # Don't output the file directly to prevent loading of incomplete file! Tempfile.open(list_path.basename.to_s, list_path.parent.to_s, "w") do |output| output.write(file_contents) -------------- next part -------------- HTML����������������������������...Download