Skip to content

opt: add test to ensure Metadata.CopyFrom makes copies of table metadata maps#67078

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
mgartner:test-copy-scalar-maps
Jun 30, 2021
Merged

opt: add test to ensure Metadata.CopyFrom makes copies of table metadata maps#67078
craig[bot] merged 1 commit intocockroachdb:masterfrom
mgartner:test-copy-scalar-maps

Conversation

@mgartner
Copy link
Copy Markdown
Contributor

This commit adds assertions to TestMetadata that ensure that
Metadata.CopyFrom makes copies of computed column expression maps and
parital index predicate maps in table metadata, rather than sharing the
same underlying map. These tests would have caught the bug that was
fixed in #66792.

Release note: None

…ata maps

This commit adds assertions to `TestMetadata` that ensure that
`Metadata.CopyFrom` makes copies of computed column expression maps and
parital index predicate maps in table metadata, rather than sharing the
same underlying map. These tests would have caught the bug that was
fixed in cockroachdb#66792.

Release note: None
@mgartner mgartner requested review from a team and RaduBerinde June 30, 2021 16:03
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Member

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@mgartner
Copy link
Copy Markdown
Contributor Author

TFTR!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jun 30, 2021

Build succeeded:

@craig craig bot merged commit 6fbe61b into cockroachdb:master Jun 30, 2021
@mgartner mgartner deleted the test-copy-scalar-maps branch June 30, 2021 21:31
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