[Groonga-commit] droonga/droonga-engine at 753da13 [master] Initialize live-nodes-list.json certainly

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Dec 26 12:00:55 JST 2014


YUKI Hiroshi	2014-12-26 12:00:55 +0900 (Fri, 26 Dec 2014)

  New Revision: 753da13b5501d5ef38a281b5d0c4acb648f68c8d
  https://github.com/droonga/droonga-engine/commit/753da13b5501d5ef38a281b5d0c4acb648f68c8d

  Message:
    Initialize live-nodes-list.json certainly

  Modified files:
    lib/droonga/serf.rb

  Modified: lib/droonga/serf.rb (+4 -1)
===================================================================
--- lib/droonga/serf.rb    2014-12-26 11:57:10 +0900 (f1528bc)
+++ lib/droonga/serf.rb    2014-12-26 12:00:55 +0900 (cc53f14)
@@ -68,7 +68,10 @@ module Droonga
                    "-tag", "role=#{role}",
                    "-tag", "cluster_id=#{cluster_id}",
                    *retry_joins)
-      update_live_nodes_list
+      Thread.new do
+        sleep 1 # wait until the serf agent becomes running
+        update_live_nodes_list if****@agent*****?
+      end
       logger.trace("start: done")
     end
 
-------------- next part --------------
HTML����������������������������...
Download 



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