Navigation Menu

Skip to content

Commit

Permalink
Don't close connections until the cluster state is actually changed
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 21, 2015
1 parent d7b807b commit 0063709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/droonga/cluster.rb
Expand Up @@ -109,12 +109,12 @@ def reload
else
old_state = nil
end
clear_cache
@state = self.class.load_state_file
if @state == old_state
logger.info("cluster state not changed")
else
logger.info("cluster state changed", :state => @state)
clear_cache
engine_nodes.each(&:resume)
on_change
end
Expand Down

0 comments on commit 0063709

Please sign in to comment.