diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2019-07-04 16:30:40 +0000 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2019-07-04 16:30:40 +0000 |
commit | eaa6edbff3dd6bc888d975bb1eb9b52f045930fa (patch) | |
tree | b5cdf896d5486974a9435516cd735e6ee038e8f4 /app/services | |
parent | dece84065f9dee04661e54af4f7016e7c50b63a6 (diff) | |
parent | 381468d0cc6e5b528a4b2207c0a534569035a73f (diff) | |
download | gitlab-ce-eaa6edbff3dd6bc888d975bb1eb9b52f045930fa.tar.gz |
Merge branch '54117-transactional-rebase' into 'master'
Allow asynchronous rebase operations to be monitored
Closes #54117
See merge request gitlab-org/gitlab-ce!29940
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/merge_requests/rebase_service.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/services/merge_requests/rebase_service.rb b/app/services/merge_requests/rebase_service.rb index 4b9921c28ba..8d3b9b05819 100644 --- a/app/services/merge_requests/rebase_service.rb +++ b/app/services/merge_requests/rebase_service.rb @@ -15,7 +15,7 @@ module MergeRequests end def rebase - if merge_request.rebase_in_progress? + if merge_request.gitaly_rebase_in_progress? log_error('Rebase task canceled: Another rebase is already in progress', save_message_on_model: true) return false end @@ -27,6 +27,8 @@ module MergeRequests log_error(REBASE_ERROR, save_message_on_model: true) log_error(e.message) false + ensure + merge_request.update_column(:rebase_jid, nil) end end end |