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

Fix concurrent map writes #7297 #7298

Merged
merged 1 commit into from
Jan 12, 2025

Conversation

Ponywka
Copy link
Contributor

@Ponywka Ponywka commented Dec 2, 2024

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

Fixes fatal error: concurrent map writes error (#7297)

User Case Description

Using normalized tables

schema/relationship.go Outdated Show resolved Hide resolved
@Ponywka Ponywka force-pushed the hotfix/concurrent-map-writes branch from 426eae3 to bdc17d9 Compare December 9, 2024 15:01
@Ponywka
Copy link
Contributor Author

Ponywka commented Dec 9, 2024

I have no idea how to write race condition tests here. “Dirty” tests were written on #7297, but it takes several times of running tests for the bug to show itself.

@jinzhu jinzhu merged commit 9ca84b3 into go-gorm:master Jan 12, 2025
31 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.

2 participants