summaryrefslogtreecommitdiff
path: root/lib/backup/files.rb
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2018-03-13 18:10:53 +0100
committerAndreas Brandl <abrandl@gitlab.com>2018-03-14 17:51:47 +0100
commit5f35ea146adf3b96546e5dc6f69927d6ad7bcb1c (patch)
treeeaef986b379cc9181e5edc1b323a01ba9c76c264 /lib/backup/files.rb
parent7e4fcbf9bec34bb4c8e023f3726a99273850f800 (diff)
downloadgitlab-ce-5f35ea146adf3b96546e5dc6f69927d6ad7bcb1c.tar.gz
Fix concurrency issue with migration for user_interacted_projects table.ab-44205-user_interacted_projects-migration
The concurrency issue originates from inserts on `user_interacted_projects` from the app while running the post-deploy migration. This change comes with a strategy to lock the table while removing duplicates and creating the unique index (and similar for FK constraints). Also, we'll have a non-unique index until the post-deploy migration is finished to speed up queries during that time. Closes #44205.
Diffstat (limited to 'lib/backup/files.rb')
0 files changed, 0 insertions, 0 deletions