[Groonga-commit] groonga/grntest at 323d08b [master] Support collect-query-log directory for load

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Dec 4 22:40:30 JST 2017


Kouhei Sutou	2017-12-04 22:40:30 +0900 (Mon, 04 Dec 2017)

  New Revision: 323d08b9fc489a110147255078a2ac979ca3fe09
  https://github.com/groonga/grntest/commit/323d08b9fc489a110147255078a2ac979ca3fe09

  Message:
    Support collect-query-log directory for load

  Modified files:
    lib/grntest/query-log-parser.rb

  Modified: lib/grntest/query-log-parser.rb (+10 -2)
===================================================================
--- lib/grntest/query-log-parser.rb    2017-10-31 12:33:34 +0900 (17ea12e)
+++ lib/grntest/query-log-parser.rb    2017-12-04 22:40:30 +0900 (ed1aebf)
@@ -1,4 +1,4 @@
-# Copyright (C) 2015  Kouhei Sutou <kou �� clear-code.com>
+# Copyright (C) 2015-2017  Kouhei Sutou <kou �� clear-code.com>
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -43,7 +43,15 @@ module Grntest
     end
 
     def normalize_command(message)
-      command = Groonga::Command::Parser.parse(message)
+      command = nil
+      Groonga::Command::Parser.parse(message) do |status, *args|
+        case status
+        when :on_command
+          command = args[0]
+        when :on_load_start
+          command = args[0]
+        end
+      end
       if command.output_type == :json
         command[:output_type] = nil
       end
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20171204/ece8cab8/attachment.htm 



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