Skip to content

Commit

Permalink
Use more meaningful method name
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Dec 26, 2014
1 parent 0b1576b commit 12174ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/droonga/cluster_state.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def stop_observe
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
Expand Down Expand Up @@ -154,7 +154,7 @@ def clear_cache
@absorb_destination_nodes = nil
end

def state
def load_state_file
path = Path.cluster_state

return default_state unless path.exist?
Expand Down

0 comments on commit 12174ec

Please sign in to comment.