[Groonga-commit] droonga/droonga-engine at 51d31ad [master] Ignore changing of internal name of myself.

Back to archive index

Piro / YUKI Hiroshi null+****@clear*****
Thu Apr 23 03:35:59 JST 2015


Piro / YUKI Hiroshi	2015-04-23 03:35:59 +0900 (Thu, 23 Apr 2015)

  New Revision: 51d31ad8798282e005a9ba0c424a94f3fb52223d
  https://github.com/droonga/droonga-engine/commit/51d31ad8798282e005a9ba0c424a94f3fb52223d

  Message:
    Ignore changing of internal name of myself.
    
    Because it can triggers infinite restart.

  Modified files:
    lib/droonga/command/droonga_engine.rb

  Modified: lib/droonga/command/droonga_engine.rb (+7 -2)
===================================================================
--- lib/droonga/command/droonga_engine.rb    2015-04-23 03:29:19 +0900 (4ab4c4d)
+++ lib/droonga/command/droonga_engine.rb    2015-04-23 03:35:59 +0900 (6106b81)
@@ -615,10 +615,15 @@ module Droonga
           cluster_state_observer.on_change = lambda do
             my_name   =****@confi*****_name
             new_state = Cluster.load_state_file
-            if new_state and previous_state and
-                 new_state[my_name] != previous_state[my_name]
+            if new_state and previous_state
+              my_new_state = new_state[my_name].dup
+              my_new_state.delete("internal_name")
+              my_previous_state = previous_state[my_name].dup
+              my_previous_state.delete("internal_name")
+              if my_new_state != my_previous_state
               logger.info("restart by updated cluster-state.json")
               restart_graceful
+              end
             end
             previous_state = new_state
           end
-------------- next part --------------
HTML����������������������������...
다운로드 



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