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

Fixes race with unlocked setter. #5532

Merged
merged 1 commit into from
Apr 25, 2024
Merged

Conversation

cognusion
Copy link
Contributor

What problem are we solving?

LockRing.lastUpdateTime was being set outside of a lock in SetSnapshot, and blowing up in race conditions.

How are we solving the problem?

This update properly uses the exiting locking.

How is the PR tested?

Existing test suite passes. Contrived races now properly wait.

Checks

  • I have added unit tests if possible.
  • I will add related wiki document changes and link to this PR after merging.

@chrislusf chrislusf merged commit 855607c into seaweedfs:master Apr 25, 2024
5 checks passed
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