Kouhei Sutou
null+****@clear*****
Mon Jan 5 16:47:20 JST 2015
Kouhei Sutou 2015-01-05 16:47:20 +0900 (Mon, 05 Jan 2015) New Revision: c75059c9946cccf81df77c4ba7ce6a9b8df40608 https://github.com/droonga/droonga-engine/commit/c75059c9946cccf81df77c4ba7ce6a9b8df40608 Message: serf: cache found serf path Modified files: lib/droonga/serf.rb Modified: lib/droonga/serf.rb (+2 -1) =================================================================== --- lib/droonga/serf.rb 2015-01-05 16:45:41 +0900 (6242fa4) +++ lib/droonga/serf.rb 2015-01-05 16:47:20 +0900 (2ff778c) @@ -37,6 +37,7 @@ module Droonga include Loggable def initialize(name) + @serf = nil @name = name @service_installation = ServiceInstallation.new end @@ -161,7 +162,7 @@ module Droonga private def ensure_serf - @serf = find_system_serf + @serf ||= find_system_serf return if @serf serf_path = self.class.path -------------- next part -------------- HTML����������������������������... Download