[Groonga-commit] droonga/droonga-http-server at 0ae2267 [master] Fix wrong option name.

Back to archive index

Piro / YUKI Hiroshi null+****@clear*****
Tue Sep 23 19:37:55 JST 2014


Piro / YUKI Hiroshi	2014-09-23 19:37:55 +0900 (Tue, 23 Sep 2014)

  New Revision: 0ae226781eff3313e42a61cc470ccad29c097b31
  https://github.com/droonga/droonga-http-server/commit/0ae226781eff3313e42a61cc470ccad29c097b31

  Message:
    Fix wrong option name.
    
    The option is "--receive-host-name", not "--receiveR-host-name".

  Modified files:
    bin/droonga-http-server-configure
    lib/server-options.js

  Modified: bin/droonga-http-server-configure (+2 -2)
===================================================================
--- bin/droonga-http-server-configure    2014-09-23 16:46:43 +0900 (0c36320)
+++ bin/droonga-http-server-configure    2014-09-23 19:37:55 +0900 (8892026)
@@ -256,7 +256,7 @@ function tryResetConfigs() {
   }
 
   setInteger('port', 'port')
-   .then(function() { return setString('receiverHostName', 'hostname of this node'); })
+   .then(function() { return setString('receiveHostName', 'hostname of this node'); })
    .then(function() { return setString('droongaEngineHostName', 'hostname of the droonga-engine node'); })
    .then(function() { return setInteger('droongaEnginePort', 'port number of the droonga-engine node'); })
    .then(function() { return setString('tag', 'tag of the droonga-engine node'); })
@@ -312,7 +312,7 @@ function writeNewConfigs() {
   engineConfigs.port            = configValues.droongaEnginePort;
   engineConfigs.default_dataset = configValues.defaultDataset;
   engineConfigs.tag             = configValues.tag;
-  engineConfigs.receiver_host   = configValues.receiverHostName;
+  engineConfigs.receiver_host   = configValues.receiveHostName;
   configs.engine = engineConfigs;
 
   var configYaml = yaml.safeDump(configs);

  Modified: lib/server-options.js (+3 -3)
===================================================================
--- lib/server-options.js    2014-09-23 16:46:43 +0900 (8b3cf8b)
+++ lib/server-options.js    2014-09-23 19:37:55 +0900 (952da9f)
@@ -17,7 +17,7 @@ options.droongaEngineHostName = defaultConfigs.engine.host;
 options.droongaEnginePort     = defaultConfigs.engine.port;
 options.tag                   = defaultConfigs.engine.tag;
 options.defaultDataset        = defaultConfigs.engine.default_dataset;
-options.receiverHostName      = defaultConfigs.engine.receiver_host;
+options.receiveHostName       = defaultConfigs.engine.receiver_host;
 
 function intOption(newValue, oldValue) {
   return parseInt(newValue);
@@ -58,9 +58,9 @@ function define() {
   add('--receive-host-name <name>',
       'Host name of the protocol adapter. ' +
         'It must be resolvable by Droonga engine. ' +
-        '(' + options.receiverHostName + ')',
+        '(' + options.receiveHostName + ')',
       generateOptionHandler(function() {
-        options.receiverHostNameGiven = true;
+        options.receiveHostNameGiven = true;
       }));
   add('--droonga-engine-host-name <name>',
       'Host name of Droonga engine (' + options.droongaEngineHostName + ')',
-------------- next part --------------
HTML����������������������������...
Download 



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