diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-16 12:12:38 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-16 12:12:38 +0000 |
commit | 93fb07b8c9edb0f3e860d7670b47e03a136d1a57 (patch) | |
tree | 3a0def9b247850b5510e11faafd628101bb9c06f /app/models/loose_foreign_keys | |
parent | d75ac09b4a880ba2d36d510a5720dd550b0809e9 (diff) | |
download | gitlab-ce-93fb07b8c9edb0f3e860d7670b47e03a136d1a57.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/loose_foreign_keys')
-rw-r--r-- | app/models/loose_foreign_keys/deleted_record.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/loose_foreign_keys/deleted_record.rb b/app/models/loose_foreign_keys/deleted_record.rb index 8534e26e8ff..94444f4b6d3 100644 --- a/app/models/loose_foreign_keys/deleted_record.rb +++ b/app/models/loose_foreign_keys/deleted_record.rb @@ -10,8 +10,6 @@ class LooseForeignKeys::DeletedRecord < Gitlab::Database::SharedModel partitioned_by :partition, strategy: :sliding_list, next_partition_if: -> (active_partition) do - return false if Feature.disabled?(:lfk_automatic_partition_creation) - oldest_record_in_partition = LooseForeignKeys::DeletedRecord .select(:id, :created_at) .for_partition(active_partition) @@ -23,8 +21,6 @@ class LooseForeignKeys::DeletedRecord < Gitlab::Database::SharedModel oldest_record_in_partition.created_at < PARTITION_DURATION.ago end, detach_partition_if: -> (partition) do - return false if Feature.disabled?(:lfk_automatic_partition_dropping) - !LooseForeignKeys::DeletedRecord .for_partition(partition) .status_pending |