[Groonga-commit] droonga/droonga-engine at 0b1576b [master] Output "info" log when cluster state is reloaded, even if the state is not changed

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Dec 26 16:12:24 JST 2014


YUKI Hiroshi	2014-12-26 16:12:24 +0900 (Fri, 26 Dec 2014)

  New Revision: 0b1576bf23a6f6add1b141606e5c8487f08cd0e0
  https://github.com/droonga/droonga-engine/commit/0b1576bf23a6f6add1b141606e5c8487f08cd0e0

  Message:
    Output "info" log when cluster state is reloaded, even if the state is not changed

  Modified files:
    lib/droonga/cluster_state.rb

  Modified: lib/droonga/cluster_state.rb (+4 -2)
===================================================================
--- lib/droonga/cluster_state.rb    2014-12-26 16:04:22 +0900 (ef4b9bb)
+++ lib/droonga/cluster_state.rb    2014-12-26 16:12:24 +0900 (e3fd10c)
@@ -52,8 +52,10 @@ module Droonga
       old_state = to_hash
       clear_cache
       @state = state
-      logger.info("live-nodes-list loaded")
-      unless to_hash == old_state
+      if to_hash == old_state
+        logger.info("cluster state not changed")
+      else
+        logger.info("cluster state changed")
         on_change
       end
     end
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index