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 condition in flushDiscardStats function #921

Merged
merged 2 commits into from
Jul 8, 2019

Conversation

jarifibrahim
Copy link
Contributor

@jarifibrahim jarifibrahim commented Jul 5, 2019

A couple of builds failed on teamcity with data race error. See https://teamcity.dgraph.io/viewLog.html?buildId=16131&tab=buildResultsDiv&buildTypeId=Badger_UnitTests#testNameId2998050314356001114

This PR fixes the data race in flushDsicardStats function.


This change is Reviewable

Copy link
Contributor

@manishrjain manishrjain left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ashish-goswami)

@jarifibrahim jarifibrahim merged commit 5caab82 into master Jul 8, 2019
@jarifibrahim jarifibrahim deleted the ibrahim/fix-getmore branch July 8, 2019 06:36
benpbrown pushed a commit to lightstep/badger that referenced this pull request Oct 25, 2019
A couple of builds failed on teamcity with data race error.
See https://teamcity.dgraph.io/viewLog.html?buildId=16131

This PR fixes the data race in `flushDiscardStats` function.
jarifibrahim pushed a commit that referenced this pull request Mar 12, 2020
A couple of builds failed on teamcity with data race error.
See https://teamcity.dgraph.io/viewLog.html?buildId=16131

This PR fixes the data race in `flushDiscardStats` function.

(cherry picked from commit 5caab82)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants