summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Newdigate <andrew@gitlab.com>2017-09-22 17:31:17 +0100
committerAndrew Newdigate <andrew@gitlab.com>2017-09-22 17:31:17 +0100
commitb0dd99b58469957b6c2b9d54e788231a973ff50b (patch)
tree18d7689cf34e9f368ca568e90daa7ef6f73b3d65
parent98e612eae4b9cf31495651d11fb16d4681eb0dc4 (diff)
downloadgitlab-ce-post_receive_n_plus_1_workaround.tar.gz
Added a reference to the technical debtpost_receive_n_plus_1_workaround
-rw-r--r--lib/gitlab/data_builder/push.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/data_builder/push.rb b/lib/gitlab/data_builder/push.rb
index 2799cfaa27c..31a46a738c3 100644
--- a/lib/gitlab/data_builder/push.rb
+++ b/lib/gitlab/data_builder/push.rb
@@ -64,6 +64,7 @@ module Gitlab
# For performance purposes maximum 20 latest commits
# will be passed as post receive hook data.
+ # n+1: https://gitlab.com/gitlab-org/gitlab-ce/issues/38259
commit_attrs = Gitlab::GitalyClient.allow_n_plus_1_calls do
commits_limited.map do |commit|
commit.hook_attrs(with_changed_files: true)