[Groonga-commit] droonga/droonga-engine at 376c835 [master] Use serf query instead of serf event

Back to archive index

YUKI Hiroshi null+****@clear*****
Sun Jun 29 03:07:12 JST 2014


YUKI Hiroshi	2014-06-29 03:07:12 +0900 (Sun, 29 Jun 2014)

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

  Message:
    Use serf query instead of serf event

  Modified files:
    bin/droonga-engine-join
    bin/droonga-engine-unjoin
    lib/droonga/command/serf_event_handler.rb

  Modified: bin/droonga-engine-join (+1 -1)
===================================================================
--- bin/droonga-engine-join    2014-06-29 03:06:51 +0900 (1254f1b)
+++ bin/droonga-engine-join    2014-06-29 03:07:12 +0900 (67b5b6a)
@@ -104,7 +104,7 @@ options.port = dataset.port
 options.joining_node = "#{options.joining_host}:#{options.port}/#{options.tag}"
 
 puts "Joining new replica to the cluster..."
-Droonga::Serf.send_event(options.joining_node, "join",
+Droonga::Serf.send_query(options.joining_node, "join",
                          "source" => options.replica_source_host,
                          "copy"   => options.copy)
 

  Modified: bin/droonga-engine-unjoin (+1 -1)
===================================================================
--- bin/droonga-engine-unjoin    2014-06-29 03:06:51 +0900 (677fd63)
+++ bin/droonga-engine-unjoin    2014-06-29 03:07:12 +0900 (3053c48)
@@ -81,7 +81,7 @@ options.remaining_node = "#{remaining_host}:#{options.port}/#{options.tag}"
 
 puts "Unjoining replica from the cluster..."
 
-Droonga::Serf.send_event(options.remaining_node, "remove_replicas",
+Droonga::Serf.send_query(options.remaining_node, "remove_replicas",
                          "dataset" => options.dataset,
                          "hosts"   => [options.replica_remove_host]))
 

  Modified: lib/droonga/command/serf_event_handler.rb (+1 -1)
===================================================================
--- lib/droonga/command/serf_event_handler.rb    2014-06-29 03:06:51 +0900 (38c463f)
+++ lib/droonga/command/serf_event_handler.rb    2014-06-29 03:07:12 +0900 (36df473)
@@ -136,7 +136,7 @@ module Droonga
         sleep(1) # wait for restart
 
         source_node  = "#{source}:#{port}/#{tag}"
-        Serf.send_event(source_node, "add_replicas",
+        Serf.send_query(source_node, "add_replicas",
                         "dataset" => dataset,
                         "hosts"   => [host])
       end
-------------- next part --------------
HTML����������������������������...
Download 



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