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

kvserver: fix locking before addToReplicasByKey* #96946

Merged
merged 1 commit into from
Feb 10, 2023

Conversation

pav-kv
Copy link
Collaborator

@pav-kv pav-kv commented Feb 10, 2023

This commit fixes test failures under --race which see r.mu not locked in methods that require it. The mutex lock wasn't necessary during struct creation, but now is done to work around the test failures.

Release note: none
Epic: none

@pav-kv pav-kv requested a review from a team February 10, 2023 14:33
@pav-kv pav-kv requested a review from a team as a code owner February 10, 2023 14:33
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@pav-kv
Copy link
Collaborator Author

pav-kv commented Feb 10, 2023

bors r=kvoli

@craig
Copy link
Contributor

craig bot commented Feb 10, 2023

Build succeeded:

@craig craig bot merged commit 9da3001 into cockroachdb:master Feb 10, 2023
@pav-kv pav-kv deleted the fix_lock_assert branch February 10, 2023 17:06
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