Skip to content
Snippets Groups Projects
Commit ca817816 authored by Michael Kozono's avatar Michael Kozono
Browse files

Handle race condition

parent 71d27044
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
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