-
- Downloads
Lock writes to detached partitions as well
This allows us to truncate such detached partitions (truncate_legacy_tables) As the detached partitions is in a different schema, we update the query for table_locked_for_writes? to handle differnt schemas correctly. (PG stores the schema separately in another column)
parent
341f931c
No related branches found
No related tags found
Showing
- lib/gitlab/database/lock_writes_manager.rb 19 additions, 3 deletionslib/gitlab/database/lock_writes_manager.rb
- lib/tasks/gitlab/db/lock_writes.rake 3 additions, 2 deletionslib/tasks/gitlab/db/lock_writes.rake
- spec/lib/gitlab/database/lock_writes_manager_spec.rb 8 additions, 0 deletionsspec/lib/gitlab/database/lock_writes_manager_spec.rb
- spec/tasks/gitlab/db/lock_writes_rake_spec.rb 46 additions, 0 deletionsspec/tasks/gitlab/db/lock_writes_rake_spec.rb
Please register or sign in to comment