Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql: add fk downgrade path for mixed version clusters #39448

Merged
merged 1 commit into from
Aug 9, 2019

Conversation

jordanlewis
Copy link
Member

If a cluster is in a mixed-version state, and it has new-style foreign
keys, all descriptors will be downgraded before serialization. This will
be a no-op until code is added that populates the new-style foreign key
fields.

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@jordanlewis
Copy link
Member Author

@lucy-zhang I just figured I'd get started on this - I forgot we had already gone through and marked all of the write path spots with the new writeToBatch etc methods, so this was straightforward. I think we'll probably still want to re-audit some callsites after this though.

@jordanlewis jordanlewis force-pushed the fk-downgrade-gate branch 6 times, most recently from 934be92 to b4dbeeb Compare August 9, 2019 14:19
If a cluster is in a mixed-version state, and it has new-style foreign
keys, all descriptors will be downgraded before serialization. This will
be a no-op until code is added that populates the new-style foreign key
fields.

Release note: None
@jordanlewis
Copy link
Member Author

bors r+

craig bot pushed a commit that referenced this pull request Aug 9, 2019
39448: sql: add fk downgrade path for mixed version clusters r=jordanlewis a=jordanlewis

If a cluster is in a mixed-version state, and it has new-style foreign
keys, all descriptors will be downgraded before serialization. This will
be a no-op until code is added that populates the new-style foreign key
fields.

Release note: None

Co-authored-by: Jordan Lewis <jordanthelewis@gmail.com>
@craig
Copy link
Contributor

craig bot commented Aug 9, 2019

Build succeeded

@craig craig bot merged commit e2941cd into cockroachdb:master Aug 9, 2019
@jordanlewis jordanlewis deleted the fk-downgrade-gate branch August 10, 2019 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants