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.
131028: schemachanger: subzone fixes r=spilchen a=annrpom ### schemachanger: fix subzone writes Updating a subzone config on a table without a pre-configured zone config needs to create a subzone placeholder. This is done by setting `num_replicas` to 0 in the table zone config. Fixes: cockroachdb#130605 Release note: None --- ### schemachanger: fix index subzone spans Previously, we would accidentally overrwrite any existing subzone spans from a different index instead of appending a new subzone span. This patch ensures that we correctly pass in all subzones in order to generate our list of subzone spans for our zone config write. Release note: None --- ### spanconfigccl: ensure zc changes with subzone spans dont fallback This patch ensures that partition and index spanconfig tests don't fallback to the legacy schema changer. Release note: None Co-authored-by: Annie Pompa <[email protected]>
- Loading branch information
Showing
9 changed files
with
182 additions
and
64 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
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.