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

bart: do not alias memory in Union #17

Merged
merged 1 commit into from
Mar 26, 2024
Merged

Conversation

maisem
Copy link
Contributor

@maisem maisem commented Mar 26, 2024

Union was inadvertently reusing a *node from the other table which meant that when either table was later mutated the change would appear in both tables.

Add a test and fix the condition.

Updates #16

Union was inadvertently reusing a `*node` from the
other table which meant that when either table was
later mutated the change would appear in both tables.

Add a test and fix the condition.

Updates gaissmai#16
@gaissmai gaissmai merged commit 4322934 into gaissmai:main Mar 26, 2024
6 checks passed
@maisem maisem deleted the maisem/union branch March 26, 2024 20:39
maisem added a commit to tailscale/tailscale that referenced this pull request Mar 26, 2024
To pick up gaissmai/bart#17.

Updates #deps

Signed-off-by: Maisem Ali <maisem@tailscale.com>
maisem added a commit to tailscale/tailscale that referenced this pull request Mar 26, 2024
To pick up gaissmai/bart#17.

Updates #deps

Signed-off-by: Maisem Ali <maisem@tailscale.com>
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.

None yet

2 participants