summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-07-04 14:37:33 +0900
committerShinya Maeda <shinya@gitlab.com>2018-07-04 14:37:33 +0900
commit599be28c62d0a1ebb5a2e715998091ce1373ac80 (patch)
treea875ed4305c6754e833d419f77bb3dcaa232a182 /lib
parent58dc574a5898882482bcfe29d23f475d6c62c451 (diff)
downloadgitlab-ce-599be28c62d0a1ebb5a2e715998091ce1373ac80.tar.gz
Simplify the comments
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/ci/trace.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/gitlab/ci/trace.rb b/lib/gitlab/ci/trace.rb
index ddf78b0b893..1586a4608dc 100644
--- a/lib/gitlab/ci/trace.rb
+++ b/lib/gitlab/ci/trace.rb
@@ -100,14 +100,11 @@ module Gitlab
def erase!
##
- # Erase an archived traces
- # This removes both a database-row and a real file in either a file storage or a object storage
+ # Erase the archived trace
trace_artifact&.destroy!
##
- # Erase a live trace
- # Basically, jobs have _one_ of the following live traces, but it might be able to happen by a race condition
- # Therefore, we remove all type of live traces.
+ # Erase the live trace
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