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
2d16ce1
commit 3d27f71
Showing
8 changed files
with
237 additions
and
173 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.