Skip to content
Snippets Groups Projects
Verified Commit 04790730 authored by Patrick Bajao's avatar Patrick Bajao :red_circle: Committed by GitLab
Browse files

Merge branch '441526-prevent-exclusive-lease-in-transaction' into 'master'

Remove Gitlab::ExclusiveLease.skipping_transaction_check in issuable base service

See merge request !148632



Merged-by: Patrick Bajao's avatarPatrick Bajao <ebajao@gitlab.com>
Approved-by: default avatarDominic Bauer <dbauer@gitlab.com>
Approved-by: Patrick Bajao's avatarPatrick Bajao <ebajao@gitlab.com>
Co-authored-by: Heinrich Lee Yu's avatarHeinrich Lee Yu <heinrich@gitlab.com>
parents c7f2a19f cb341194
No related branches found
No related tags found
1 merge request!148632Remove Gitlab::ExclusiveLease.skipping_transaction_check in issuable base service
Pipeline #1250266695 passed
......@@ -349,12 +349,7 @@ def update(issuable)
issuable.updated_by = current_user if should_touch
# `issuable` could create a ghost user when updating `last_edited_by`.
# Users::Internal.ghost will obtain an ExclusiveLease within this transaction.
# See issue: https://gitlab.com/gitlab-org/gitlab/-/issues/441526
Gitlab::ExclusiveLease.skipping_transaction_check do
transaction_update(issuable, { save_with_touch: should_touch })
end
transaction_update(issuable, { save_with_touch: should_touch })
end
if issuable_saved
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment