Invalidate memoization after its erased

This commit is contained in:
Shinya Maeda 2018-07-04 14:51:12 +09:00
parent 599be28c62
commit 0b0d4efaf0
1 changed files with 2 additions and 0 deletions

View File

@ -108,6 +108,8 @@ module Gitlab
job.trace_chunks.fast_destroy_all # Destroy chunks of a live trace
FileUtils.rm_f(current_path) if current_path # Remove a trace file of a live trace
job.erase_old_trace! if job.has_old_trace? # Remove a trace in database of a live trace
ensure
@current_path = nil
end
def archive!