[Groonga-commit] droonga/droonga-engine at efd1feb [master] Set replica hosts of the unjoined node to the node itself

アーカイブの一覧に戻る

YUKI Hiroshi null+****@clear*****
Sat Nov 29 17:36:56 JST 2014


YUKI Hiroshi	2014-11-29 17:36:56 +0900 (Sat, 29 Nov 2014)

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

  Message:
    Set replica hosts of the unjoined node to the node itself

  Modified files:
    bin/droonga-engine-unjoin

  Modified: bin/droonga-engine-unjoin (+5 -1)
===================================================================
--- bin/droonga-engine-unjoin    2014-11-29 17:15:47 +0900 (b9aa6f6)
+++ bin/droonga-engine-unjoin    2014-11-29 17:36:56 +0900 (649741c)
@@ -89,7 +89,7 @@ options.other_hosts = dataset.replicas.hosts
 
 remaining_host = options.other_hosts.first || options.replica_remove_host
 options.remaining_node = "#{remaining_host}:#{options.port}/#{options.tag}"
-
+options.replica_remove_node = "#{options.replica_remove_host}:#{options.port}/#{options.tag}"
 
 def run_remote_command(target, command, options)
   serf = Droonga::Serf.new(nil, target)
@@ -105,6 +105,10 @@ run_remote_command(options.remaining_node, "remove_replicas",
                    "dataset" => options.dataset,
                    "hosts"   => [options.replica_remove_host])
 
+run_remote_command(options.replica_remove_node, "set_replicas",
+                   "dataset" => options.dataset,
+                   "hosts"   => [options.replica_remove_host])
+
 puts "Done."
 
 exit(true)
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る