Commit 986a4781 authored by Matthias Kaeppler's avatar Matthias Kaeppler

Add postfix to indicate call has side-effect

Outcome of a discussion in https://gitlab.com/gitlab-org/gitlab/merge_requests/18005
parent d8f2eb01
......@@ -9,8 +9,8 @@ module EE
private
override :remove_feature_dependent_sub_relations
def remove_feature_dependent_sub_relations(relation_item)
override :remove_feature_dependent_sub_relations!
def remove_feature_dependent_sub_relations!(relation_item)
export_designs_disabled = ::Feature.disabled?(:export_designs, project, default_enabled: true)
if relation_item.is_a?(Hash) && export_designs_disabled
......
......@@ -120,7 +120,7 @@ module Gitlab
end
end
def remove_feature_dependent_sub_relations(_relation_item)
def remove_feature_dependent_sub_relations!(_relation_item)
# no-op
end
......@@ -191,7 +191,7 @@ module Gitlab
# Avoid keeping a possible heavy object in memory once we are done with it
while relation_item = tree_array.shift
remove_feature_dependent_sub_relations(relation_item)
remove_feature_dependent_sub_relations!(relation_item)
# The transaction at this level is less speedy than one single transaction
# But we can't have it in the upper level or GC won't get rid of the AR objects
......
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