Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: hook up multi-region DDL to new zone config attributes
After the introduction of cockroachdb#57184, we can constrain voting replicas separately from non-voting replicas using the new attributes `num_voters` and `voter_constraints`. This commit connects our multi-region DDL statements to leverage these new attributes. Broadly speaking, - The existing `constraints` and `num_replicas` fields are set at the database level, to be inherited by table/partition level zone configs. - The new attributes: `num_voters` and `voter_constraints` (along with accompanying `lease_preferences` for these voters) are set at the table/partition level. This brings the implementation of these DDL statements inline with the functional specfication. Fixes cockroachdb#57663 Release note: None
- Loading branch information