[Groonga-commit] groonga/groonga at 1c249f0 [master] Support --default-command-version 3

Back to archive index

Kentaro Hayashi null+****@clear*****
Thu Sep 14 15:16:13 JST 2017


Kentaro Hayashi	2017-09-14 15:16:13 +0900 (Thu, 14 Sep 2017)

  New Revision: 1c249f0c2b2895ac6da90a00ee2a7f3ce1612d53
  https://github.com/groonga/groonga/commit/1c249f0c2b2895ac6da90a00ee2a7f3ce1612d53

  Merged 3d4a3d0: Merge pull request #761 from kenhys/support-default-command-version3

  Message:
    Support --default-command-version 3
    
    In the previous versions, --default-command-version 3 is not supported.
    
    Before:
    
      % groonga --default-command-version 3 -n db/db
      invalid command version: <3>
    
    After:
    
      % groonga --default-command-version 3 -n db/db
      >

  Modified files:
    src/groonga.c

  Modified: src/groonga.c (+1 -12)
===================================================================
--- src/groonga.c    2017-09-20 15:07:11 +0900 (21ad8633c)
+++ src/groonga.c    2017-09-14 15:16:13 +0900 (974271217)
@@ -3601,18 +3601,7 @@ main(int argc, char **argv)
               default_command_version_arg);
       return EXIT_FAILURE;
     }
-    switch (value) {
-    case 1 :
-      default_command_version = GRN_COMMAND_VERSION_1;
-      break;
-    case 2 :
-      default_command_version = GRN_COMMAND_VERSION_2;
-      break;
-    default :
-      fprintf(stderr, "invalid command version: <%s>\n",
-              default_command_version_arg);
-      return EXIT_FAILURE;
-    }
+    default_command_version = value;
   } else {
     default_command_version = default_default_command_version;
   }
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20170914/6a2a7b47/attachment.htm 



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