-
Notifications
You must be signed in to change notification settings - Fork 180
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 data race in account grouping for account based migration #5488
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5488 +/- ##
==========================================
+ Coverage 55.97% 56.02% +0.05%
==========================================
Files 1022 1029 +7
Lines 99705 100434 +729
==========================================
+ Hits 55807 56267 +460
- Misses 39598 39836 +238
- Partials 4300 4331 +31
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
@@ -177,17 +177,17 @@ func (s sortablePayloads) Swap(i, j int) { | |||
s[i], s[j] = s[j], s[i] | |||
} | |||
|
|||
func (s sortablePayloads) FindNextKeyIndex(i int) int { | |||
func (s sortablePayloads) FindNextKeyIndexUntil(i int, upperBound int) int { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, I see, Good catch!
Closes #5485
Updates onflow/cadence#3096
This fixes data race in account grouping.
While at it, also added test to reproduce the data race.