Kouhei Sutou
null+****@clear*****
Thu Oct 26 11:17:43 JST 2017
Kouhei Sutou 2017-10-26 11:17:43 +0900 (Thu, 26 Oct 2017) New Revision: a06e3bb774295976db0fce63d2b2176f394cad4a https://github.com/groonga/groonga-query-log/commit/a06e3bb774295976db0fce63d2b2176f394cad4a Message: groonga-query-log-replay: fix a bug that --target-command-name is ignored Modified files: lib/groonga/query-log/replayer.rb Modified: lib/groonga/query-log/replayer.rb (+2 -1) =================================================================== --- lib/groonga/query-log/replayer.rb 2017-09-27 15:48:31 +0900 (7dffe27) +++ lib/groonga/query-log/replayer.rb 2017-10-26 11:17:43 +0900 (c5a37de) @@ -157,7 +157,7 @@ module Groonga @disable_cache = false @requests_path = nil @responses_path = nil - @target_command_names = ["*"] + @target_command_names = [] end def create_client(&block) @@ -192,6 +192,7 @@ module Groonga end def target_command_name?(name) + return true if @target_command_names.empty? @target_command_names.any? do |name_pattern| flags = 0 flags |= File::FNM_EXTGLOB if File.const_defined?(:FNM_EXTGLOB) -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20171026/b40fc05c/attachment.htm