Handle race condition
This commit is contained in:
parent
71d2704418
commit
ca81781680
1 changed files with 2 additions and 1 deletions
|
@ -229,7 +229,8 @@ module Gitlab
|
|||
|
||||
def drop_temp_table_if_finished
|
||||
if UntrackedFile.all.empty?
|
||||
UntrackedFile.connection.drop_table(:untracked_files_for_uploads)
|
||||
UntrackedFile.connection.drop_table(:untracked_files_for_uploads,
|
||||
if_exists: true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue