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(tsm1): fix data race when accessing tombstone stats #20773

Merged
merged 3 commits into from
Feb 19, 2021

Conversation

danxmoran
Copy link
Contributor

Closes #20622

}
if stats.Size > 0 {
return true
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if it's worth the verbosity to avoid the extra lock below

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's good as long as a non-zero size always means there are tombstones.

Copy link
Contributor Author

@danxmoran danxmoran Feb 18, 2021

Choose a reason for hiding this comment

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

It's the same end behavior as before, at least

}
if stats.Size > 0 {
return true
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's good as long as a non-zero size always means there are tombstones.

@danxmoran danxmoran merged commit efd766d into master Feb 19, 2021
@danxmoran danxmoran deleted the dm-tombstone-data-race-20622 branch February 19, 2021 01:24
Copy link
Contributor

@docmerlin docmerlin left a comment

Choose a reason for hiding this comment

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

Ignore this, comment, was supposed to be for a different PR.

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.

Data race between FileStore and Tombstoner in tsm1
4 participants