YUKI Hiroshi
null+****@clear*****
Fri Jul 18 17:25:06 JST 2014
YUKI Hiroshi 2014-07-18 17:25:06 +0900 (Fri, 18 Jul 2014) New Revision: 2d7e3e975172663dc6d6d62403e47209f28aaf98 https://github.com/droonga/droonga-engine/commit/2d7e3e975172663dc6d6d62403e47209f28aaf98 Message: Accept dataset name from command line Modified files: bin/droonga-engine-join Modified: bin/droonga-engine-join (+7 -2) =================================================================== --- bin/droonga-engine-join 2014-07-18 17:21:40 +0900 (2f15fa8) +++ bin/droonga-engine-join 2014-07-18 17:25:06 +0900 (3904c00) @@ -60,6 +60,11 @@ parser.on("--replica-source-host=HOST", "Host name of the soruce cluster to be connected.") do |host| options.replica_source_host = host end +parser.on("--dataset=DATASET", + "Tag dataset name of the cluster to be joined as a node.", + "(#{options.dataset})") do |dataset| + options.dataset = dataset +end parser.on("--port=PORT", Integer, "Port number of the source cluster to be connected.", "(#{options.port})") do |port| @@ -136,8 +141,8 @@ run_remote_command(options.joining_node, "join", puts "Update existing hosts in the cluster..." run_remote_command(options.source_node, "add_replicas", - "dataset" => dataset_name, - "hosts" => [host]) + "dataset" => options.dataset, + "hosts" => [options.joining_host]) run_remote_command(options.source_node, "unpublish_catalog", "node" => options.source_node, -------------- next part -------------- HTML����������������������������... 下載