Skip to content

The rake task gitlab:db:lock_writes should not lock shared databases

Omar Qunsul requested to merge 368362-lock-writes-bug-with-shared-databases into master

What does this MR do and why?

Addressing issue #368362 (closed)

How to set up and validate locally

Setup your database (database.yml) according to the config in the issue: Addressing issue #368362 (closed)

Then run the rake task ./bin/rake gitlab:db:lock_writes. You should see all the tables on main allowing writes, with no changes on the ci database which is shared with the main database.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading