Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ca2b4bfa
Commit
ca2b4bfa
authored
Jul 01, 2021
by
Imre Farkas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid duplicate root ancestor calculation when syncing traversal_ids
parent
f363da8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
app/models/namespaces/traversal/linear.rb
app/models/namespaces/traversal/linear.rb
+1
-2
No files found.
app/models/namespaces/traversal/linear.rb
View file @
ca2b4bfa
...
...
@@ -138,8 +138,7 @@ module Namespaces
# Clear any previously memoized root_ancestor as our ancestors have changed.
clear_memoization
(
:root_ancestor
)
# We cannot rely on Namespaces::Traversal::Linear#root_ancestor because it might be stale
Namespace
::
TraversalHierarchy
.
for_namespace
(
recursive_root_ancestor
).
sync_traversal_ids!
Namespace
::
TraversalHierarchy
.
for_namespace
(
self
).
sync_traversal_ids!
end
# Lock the root of the hierarchy we just left, and lock the root of the hierarchy
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment