Commit 08c1dd34 authored by Ahmad Sherif's avatar Ahmad Sherif

Use commit deltas when counting files in IrkerWorker

parent 6eba7188
...@@ -57,7 +57,7 @@ v 8.11.0 (unreleased) ...@@ -57,7 +57,7 @@ v 8.11.0 (unreleased)
- Sensible state specific default sort order for issues and merge requests !5453 (tomb0y) - Sensible state specific default sort order for issues and merge requests !5453 (tomb0y)
- Fix RequestProfiler::Middleware error when code is reloaded in development - Fix RequestProfiler::Middleware error when code is reloaded in development
- Catch what warden might throw when profiling requests to re-throw it - Catch what warden might throw when profiling requests to re-throw it
- Speed up and reduce memory usage of Commit#repo_changes and Repository#expire_avatar_cache - Speed up and reduce memory usage of Commit#repo_changes, Repository#expire_avatar_cache and IrkerWorker
v 8.10.3 v 8.10.3
- Fix Import/Export issue importing milestones and labels not associated properly. !5426 - Fix Import/Export issue importing milestones and labels not associated properly. !5426
......
...@@ -141,7 +141,7 @@ class IrkerWorker ...@@ -141,7 +141,7 @@ class IrkerWorker
end end
def files_count(commit) def files_count(commit)
diffs = commit.raw_diffs diffs = commit.raw_diffs(deltas_only: true)
files = "#{diffs.real_size} file" files = "#{diffs.real_size} file"
files += 's' if diffs.size > 1 files += 's' if diffs.size > 1
......
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