summaryrefslogtreecommitdiff
path: root/app/services/loose_foreign_keys
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-11-10 00:11:48 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-11-10 00:11:48 +0000
commitb8d3aa799c0013697fce3627f5675cc25ecc9c44 (patch)
tree8150e1df22cf4431dc7ead0502b79a444e91e84c /app/services/loose_foreign_keys
parente1b5604609766f635f5029382ea018c612aa3186 (diff)
downloadgitlab-ce-b8d3aa799c0013697fce3627f5675cc25ecc9c44.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/loose_foreign_keys')
-rw-r--r--app/services/loose_foreign_keys/batch_cleaner_service.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/services/loose_foreign_keys/batch_cleaner_service.rb b/app/services/loose_foreign_keys/batch_cleaner_service.rb
index caee2dcf753..06c05e8ff54 100644
--- a/app/services/loose_foreign_keys/batch_cleaner_service.rb
+++ b/app/services/loose_foreign_keys/batch_cleaner_service.rb
@@ -25,8 +25,7 @@ module LooseForeignKeys
return if modification_tracker.over_limit?
# At this point, all associations are cleaned up, we can update the status of the parent records
- update_count = LooseForeignKeys::DeletedRecord
- .mark_records_processed_for_table_between(deleted_parent_records.first.fully_qualified_table_name, deleted_parent_records.first, deleted_parent_records.last)
+ update_count = LooseForeignKeys::DeletedRecord.mark_records_processed(deleted_parent_records)
deleted_records_counter.increment({ table: parent_klass.table_name, db_config_name: LooseForeignKeys::DeletedRecord.connection.pool.db_config.name }, update_count)
end