YUKI Hiroshi
null+****@clear*****
Fri Dec 26 17:59:48 JST 2014
YUKI Hiroshi 2014-12-26 17:59:48 +0900 (Fri, 26 Dec 2014) New Revision: 0507fd215f90647ee90dc442b0cfd11471ace1f3 https://github.com/droonga/droonga-engine/commit/0507fd215f90647ee90dc442b0cfd11471ace1f3 Message: Use more meaningful method name Modified files: lib/droonga/cluster_state.rb Modified: lib/droonga/cluster_state.rb (+2 -2) =================================================================== --- lib/droonga/cluster_state.rb 2014-12-26 16:12:24 +0900 (866533a) +++ lib/droonga/cluster_state.rb 2014-12-26 17:59:48 +0900 (83d3f74) @@ -51,7 +51,7 @@ module Droonga def reload old_state = to_hash clear_cache - @state = state + @state = load_state_file if to_hash == old_state logger.info("cluster state not changed") else @@ -166,7 +166,7 @@ module Droonga @absorb_destination_nodes = nil end - def state + def load_state_file path = Path.cluster_state return default_state unless path.exist? -------------- next part -------------- HTML����������������������������... 下载