Skip to content

Conversation

@dnr
Copy link
Contributor

@dnr dnr commented Nov 18, 2024

What was changed

Change locking in MakeChange to include m.local, and avoid making a copy.

Why?

Fix race, make more efficient.

Checklist

  1. How was this tested:
    unit tests, will be tested in temporal server tests

@dnr dnr merged commit e505ebd into temporalio:master Nov 19, 2024
2 checks passed
@dnr dnr deleted the race1 branch November 19, 2024 00:15
dnr added a commit to temporalio/temporal that referenced this pull request Nov 19, 2024
## What changed?
Pick up race fix from temporalio/ringpop-go#16

## Why?
fix rare data race

## How did you test it?
will be tested in CI, release validation

## Potential risks
low, the previous code already obtained the same rlock on the same path,
so there shouldn't be any risk of new deadlocks
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.

2 participants