forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: update database zone configurations after region drop finalization
Previously, database level zone configurations weren't updated when the region drop was finalized. This patch adds that support. This patch also moves setting zone configurations on ADD REGION from the user txn to the type schema changer. This ensures that zone configurations are added transactionally -- if the ADD REGION fails for whatever reason, we no longer leave behind dangling zone config. Lastly, I've refactored some test setup code that was being duplicated and improved the tests around rollback to test additional scenarios. Closes cockroachdb#60435 Closes cockroachdb#60750 Release note: None Release justification: bug fixes and low-risk updates to new functionality
- Loading branch information
1 parent
3bae09b
commit 93fc4d0
Showing
7 changed files
with
204 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.