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
76adbabe
Commit
76adbabe
authored
Jan 20, 2022
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup no longer needed cross modification
parent
cf943277
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
app/services/users/destroy_service.rb
app/services/users/destroy_service.rb
+1
-4
No files found.
app/services/users/destroy_service.rb
View file @
76adbabe
...
...
@@ -65,10 +65,7 @@ module Users
user
.
destroy_dependent_associations_in_batches
(
exclude:
[
:snippets
])
# Destroy the namespace after destroying the user since certain methods may depend on the namespace existing
user_data
=
nil
::
Gitlab
::
Database
::
QueryAnalyzers
::
PreventCrossDatabaseModification
.
allow_cross_database_modification_within_transaction
(
url:
'https://gitlab.com/gitlab-org/gitlab/-/issues/340260'
)
do
user_data
=
user
.
destroy
end
namespace
.
destroy
user_data
...
...
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