Handle race condition

This commit is contained in:
Michael Kozono 2017-11-27 09:33:13 -08:00
parent 71d2704418
commit ca81781680

View file

@ -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