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 bug: should use Lock when mutating the flag #1120

Merged
merged 16 commits into from
Jan 19, 2024

Conversation

zhiqiangxu
Copy link
Contributor

@zhiqiangxu zhiqiangxu commented Jan 5, 2024

  1. hold the write lock while mutating
  2. hold the read lock while reading, otherwise the result may be inconsistent(partially updated)

@pratikspatil024 pratikspatil024 requested review from cffls and a team January 5, 2024 16:52
Copy link

codecov bot commented Jan 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (930c946) 55.97% compared to head (d0c7045) 55.91%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1120      +/-   ##
==========================================
- Coverage   55.97%   55.91%   -0.07%     
==========================================
  Files         658      658              
  Lines      114435   114427       -8     
==========================================
- Hits        64056    63977      -79     
- Misses      46527    46604      +77     
+ Partials     3852     3846       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pratikspatil024 pratikspatil024 changed the base branch from master to arpit/v1.2.2-beta-candidate January 19, 2024 08:28
@temaniarpit27 temaniarpit27 changed the base branch from arpit/v1.2.2-beta-candidate to develop January 19, 2024 13:36
@temaniarpit27 temaniarpit27 merged commit b15e2dc into maticnetwork:develop Jan 19, 2024
12 of 13 checks passed
@pratikspatil024
Copy link
Member

Cherry-picked the 3 commits from @zhiqiangxu into #1141.

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.

5 participants