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

modify for unsafe #4024

Merged
merged 4 commits into from
Nov 24, 2020
Merged

modify for unsafe #4024

merged 4 commits into from
Nov 24, 2020

Conversation

zgfzgf
Copy link
Contributor

@zgfzgf zgfzgf commented Sep 25, 2020

#4017
for var sqi in for statement
unsafe

Copy link
Contributor

@magik6k magik6k left a comment

Choose a reason for hiding this comment

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

Looks correct, but there are conflicts now (the main issue is now fixed in master it seems)

Comment on lines -457 to +468
sqi--
rmQueue = append(rmQueue, sqi)
scheduled++
}

if len(rmQueue) > 0 {
for i := len(rmQueue) - 1; i >= 0; i-- {
sh.schedQueue.Remove(rmQueue[i])
}
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Was the previous code incorrect?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

previous code may problem

Copy link
Contributor

Choose a reason for hiding this comment

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

Sure, but what was the issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this makes the code more secure

@zgfzgf
Copy link
Contributor Author

zgfzgf commented Nov 22, 2020

hi @magik6k merge ok

@magik6k magik6k merged commit fe92a6e into filecoin-project:master Nov 24, 2020
@zgfzgf zgfzgf deleted the sector-sched branch December 4, 2020 03:40
bibibong pushed a commit to EpiK-Protocol/go-epik that referenced this pull request Jan 8, 2021
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