diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-04-24 08:53:14 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-04-24 08:53:14 +0300 |
commit | 94ce2233918b6b53411a015c245c2a8b2c6bfb96 (patch) | |
tree | 894b85461f7faa13b877264c3cd2ef496a75335f /lib/gitlab/ci/trace | |
parent | fd8a63f71e11c3bbc843013a859847a96a74b500 (diff) |
Swap redis chunks when build finished
Diffstat (limited to 'lib/gitlab/ci/trace')
-rw-r--r-- | lib/gitlab/ci/trace/chunked_io.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/ci/trace/chunked_io.rb b/lib/gitlab/ci/trace/chunked_io.rb index 6b4a9f61961..7661c194a40 100644 --- a/lib/gitlab/ci/trace/chunked_io.rb +++ b/lib/gitlab/ci/trace/chunked_io.rb @@ -140,7 +140,7 @@ module Gitlab @size = offset # remove all next chunks - job_chunks.where('chunk_index > ?', chunk_index).destroy_all + job_chunks.where('chunk_index > ?', chunk_index).delete_all # truncate current chunk current_chunk.truncate(chunk_offset) if chunk_offset != 0 @@ -156,8 +156,8 @@ module Gitlab true end - def destroy! - job_chunks.destroy_all + def delete! + job_chunks.delete_all @tell = @size = 0 ensure invalidate_chunk_cache |