[Groonga-commit] droonga/droonga-engine at 8367546 [buffered-forward] 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: 8367546f5e969bd1e96e468a2751067b2370eea0
  https://github.com/droonga/droonga-engine/commit/8367546f5e969bd1e96e468a2751067b2370eea0

  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 (ce0ea3d)
+++ lib/droonga/cluster_state.rb    2014-12-26 16:12:24 +0900 (866533a)
@@ -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����������������������������...
Télécharger 



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