Commit ca817816 authored by Michael Kozono's avatar Michael Kozono

Handle race condition

parent 71d27044
...@@ -229,7 +229,8 @@ module Gitlab ...@@ -229,7 +229,8 @@ module Gitlab
def drop_temp_table_if_finished def drop_temp_table_if_finished
if UntrackedFile.all.empty? 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 end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment