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 race errors with memory tables #2510

Merged
merged 2 commits into from
May 22, 2024
Merged

Fix race errors with memory tables #2510

merged 2 commits into from
May 22, 2024

Conversation

alecsammon
Copy link
Contributor

We use this library for running our tests. These are run with the -race flag - and we are seeing some errors related to concurrency and updating of the tables map.

I've added a sync.Mutex to all the places where this map is updated - our tests are now passing :)

@timsehn
Copy link
Sponsor Contributor

timsehn commented May 22, 2024

Thanks for the contribution. @zachmu is the best person to review this.

@timsehn timsehn requested a review from zachmu May 22, 2024 16:56
Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No objections

@alecsammon
Copy link
Contributor Author

Thanks @timsehn and @zachmu

Will push a linting fix now.

@alecsammon alecsammon requested a review from zachmu May 22, 2024 17:13
@zachmu zachmu merged commit 13c8016 into dolthub:main May 22, 2024
7 checks passed
@alecsammon
Copy link
Contributor Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants