[Groonga-commit] droonga/droonga-engine at fe27c4d [master] Don't send same events again and again

Back to archive index

YUKI Hiroshi null+****@clear*****
Sat Jun 28 00:35:42 JST 2014


YUKI Hiroshi	2014-06-28 00:35:42 +0900 (Sat, 28 Jun 2014)

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

  Message:
    Don't send same events again and again

  Modified files:
    bin/droonga-engine-join

  Modified: bin/droonga-engine-join (+3 -5)
===================================================================
--- bin/droonga-engine-join    2014-06-28 00:34:38 +0900 (c408ced)
+++ bin/droonga-engine-join    2014-06-28 00:35:42 +0900 (c4f6747)
@@ -118,11 +118,9 @@ sleep(1) # wait for restart
 puts "Joining to the cluster..."
 
 name = "#{options.host}:#{options.port}/#{options.tag}"
-options.other_hosts.each do |host|
-  Serf.send_event(name, "join", "dataset" => options.dataset,
-                                "type" => "replica",
-                                "host" => options.host)
-end
+Serf.send_event(name, "join", "dataset" => options.dataset,
+                              "type" => "replica",
+                              "host" => options.host)
 
 puts "Done."
 
-------------- next part --------------
HTML����������������������������...
Download 



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