diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-07 15:44:47 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-07 15:45:32 +0200 |
commit | c467451ea6f39f498b458e11b5f8a74c53d3541d (patch) | |
tree | 886bb9516b45fa738fc83f278a365cac92b8cc07 /lib | |
parent | b41b4d2e6a44a04fc3e6fff09cf45f93033ff0ad (diff) | |
download | gitlab-ce-c467451ea6f39f498b458e11b5f8a74c53d3541d.tar.gz |
Schedule stage_id bg migrations in batches of 10
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/background_migration/migrate_build_stage_id_reference.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/background_migration/migrate_build_stage_id_reference.rb b/lib/gitlab/background_migration/migrate_build_stage_id_reference.rb index 0705b26056d..dcd5ecdf322 100644 --- a/lib/gitlab/background_migration/migrate_build_stage_id_reference.rb +++ b/lib/gitlab/background_migration/migrate_build_stage_id_reference.rb @@ -2,7 +2,7 @@ module Gitlab module BackgroundMigration class MigrateBuildStageIdReference def perform(start_id, stop_id) - scope = if stop_id.nonzero? + scope = if stop_id.to_i.nonzero? "ci_builds.id BETWEEN #{start_id.to_i} AND #{stop_id.to_i}" else "ci_builds.id >= #{start_id.to_i}" |