diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2018-07-09 18:34:30 -0300 |
---|---|---|
committer | Oswaldo Ferreira <oswaldo@gitlab.com> | 2018-07-10 10:25:48 -0300 |
commit | 659aeba43c498b7a45fb1495371ded7436b238c9 (patch) | |
tree | 7f040aa5ec7703330627334b6532af714becc530 /db | |
parent | c15f836c3a38e7c512a1851bc09440da90af8ac6 (diff) | |
download | gitlab-ce-659aeba43c498b7a45fb1495371ded7436b238c9.tar.gz |
Use schedulers and delete diff files upon deadtuples check
Diffstat (limited to 'db')
-rw-r--r-- | db/post_migrate/20180619121030_enqueue_delete_diff_files_workers.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/post_migrate/20180619121030_enqueue_delete_diff_files_workers.rb b/db/post_migrate/20180619121030_enqueue_delete_diff_files_workers.rb index 100bd2a8f4e..c4d2f5f61a0 100644 --- a/db/post_migrate/20180619121030_enqueue_delete_diff_files_workers.rb +++ b/db/post_migrate/20180619121030_enqueue_delete_diff_files_workers.rb @@ -2,7 +2,7 @@ class EnqueueDeleteDiffFilesWorkers < ActiveRecord::Migration include Gitlab::Database::MigrationHelpers DOWNTIME = false - MIGRATION = 'DeleteDiffFiles'.freeze + SCHEDULER = 'ScheduleDiffFilesDeletion'.freeze TMP_INDEX = 'tmp_partial_diff_id_with_files_index'.freeze disable_ddl_transaction! @@ -12,7 +12,7 @@ class EnqueueDeleteDiffFilesWorkers < ActiveRecord::Migration add_concurrent_index(:merge_request_diffs, :id, where: "(state NOT IN ('without_files', 'empty'))", name: TMP_INDEX) end - BackgroundMigrationWorker.perform_async(MIGRATION) + BackgroundMigrationWorker.perform_async(SCHEDULER) # We don't remove the index since it's going to be used on DeleteDiffFiles # worker. We should remove it in an upcoming release. |