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: sector counter for recovery #9108

Merged
merged 1 commit into from
Aug 1, 2022

Conversation

arajasek
Copy link
Contributor

@arajasek arajasek commented Aug 1, 2022

I don't think #9106 is quite right.

@arajasek arajasek requested a review from a team as a code owner August 1, 2022 18:32
@@ -104,22 +104,25 @@ func (s *WindowPoStScheduler) declareRecoveries(ctx context.Context, dlIdx uint6
Sectors: recovered,
})

if recoveringSectorLimit > 0 && int64(totalRecoveries) >= recoveringSectorLimit {
log.Errorw("reached recovering sector limit, not all sectors will be marked as recovered")
totalSectorsToRecover += recoveredCount
Copy link
Contributor Author

@arajasek arajasek Aug 1, 2022

Choose a reason for hiding this comment

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

this is the fix, was just being ++ed before, which is wrong

@arajasek arajasek merged commit e94c0de into feat/rec-sector-const Aug 1, 2022
@arajasek arajasek deleted the asr/fix-rec-setcor-limit branch August 1, 2022 18:57
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.

2 participants