Navigation Menu

Skip to content

Commit

Permalink
groonga-query-log-replay: fix a bug that --target-command-name is ign…
Browse files Browse the repository at this point in the history
…ored
  • Loading branch information
kou committed Oct 26, 2017
1 parent f7d4b0f commit a06e3bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/groonga/query-log/replayer.rb
Expand Up @@ -157,7 +157,7 @@ def initialize
@disable_cache = false
@requests_path = nil
@responses_path = nil
@target_command_names = ["*"]
@target_command_names = []
end

def create_client(&block)
Expand Down Expand Up @@ -192,6 +192,7 @@ def disable_cache?
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)
Expand Down

0 comments on commit a06e3bb

Please sign in to comment.