Commit c543fc16 authored by Stan Hu's avatar Stan Hu

Merge branch '352670-use-to_a-to-avoid-gc-bug-in-ruby' into 'master'

Explicitly call #to_a to avoid potential GC bug

See merge request gitlab-org/gitlab!81948
parents d45aeefa 5cb6800c
...@@ -212,7 +212,7 @@ module Gitlab ...@@ -212,7 +212,7 @@ module Gitlab
) )
response = GitalyClient.call(@repository.storage, :diff_service, :diff_stats, request, timeout: GitalyClient.medium_timeout) response = GitalyClient.call(@repository.storage, :diff_service, :diff_stats, request, timeout: GitalyClient.medium_timeout)
response.flat_map(&:stats) response.flat_map { |rsp| rsp.stats.to_a }
end end
def find_changed_paths(commits) def find_changed_paths(commits)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment