[Groonga-commit] droonga/droonga-engine at 7061db7 [master] Use more specific option name

Back to archive index

YUKI Hiroshi null+****@clear*****
Sun Jun 29 02:48:25 JST 2014


YUKI Hiroshi	2014-06-29 02:48:25 +0900 (Sun, 29 Jun 2014)

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

  Message:
    Use more specific option name

  Modified files:
    bin/droonga-engine-catalog-modify
    lib/droonga/catalog_generator.rb

  Modified: bin/droonga-engine-catalog-modify (+2 -2)
===================================================================
--- bin/droonga-engine-catalog-modify    2014-06-29 02:44:16 +0900 (5fdc11b)
+++ bin/droonga-engine-catalog-modify    2014-06-29 02:48:25 +0900 (ee21e52)
@@ -59,9 +59,9 @@ parser.on("--dataset=NAME",
           "(#{Droonga::CatalogGenerator::DEFAULT_DATASET})") do |name|
   current_dataset = datasets[name] = {}
 end
-parser.on("--hosts=NAME1,NAME2,...", Array,
+parser.on("--replica-hosts=NAME1,NAME2,...", Array,
           "Use given hosts as replicas for the current dataset.") do |hosts|
-  current_dataset[:hosts] = hosts
+  current_dataset[:replica_hosts] = hosts
 end
 parser.on("--add-replica-hosts=NAME1,NAME2,...", Array,
           "Use given hosts to be added as replicas to the current dataset.") do |hosts|

  Modified: lib/droonga/catalog_generator.rb (+2 -2)
===================================================================
--- lib/droonga/catalog_generator.rb    2014-06-29 02:44:16 +0900 (b1d044d)
+++ lib/droonga/catalog_generator.rb    2014-06-29 02:48:25 +0900 (76500fb)
@@ -78,8 +78,8 @@ module Droonga
 
         replicas = dataset.replicas
 
-        if modification[:hosts]
-          replicas.hosts = modification[:hosts]
+        if modification[:replica_hosts]
+          replicas.hosts = modification[:replica_hosts]
         end
 
         if modification[:add_replica_hosts]
-------------- next part --------------
HTML����������������������������...
Download 



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