Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-07-07 16:44:47 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-07-07 16:45:32 +0300
commitc467451ea6f39f498b458e11b5f8a74c53d3541d (patch)
tree886bb9516b45fa738fc83f278a365cac92b8cc07 /lib/gitlab/background_migration
parentb41b4d2e6a44a04fc3e6fff09cf45f93033ff0ad (diff)
Schedule stage_id bg migrations in batches of 10
Diffstat (limited to 'lib/gitlab/background_migration')
-rw-r--r--lib/gitlab/background_migration/migrate_build_stage_id_reference.rb2
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}"