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

"block rm": make channel large enough to avoid blocking #3418

Merged
merged 1 commit into from
Nov 30, 2016

Conversation

kevina
Copy link
Contributor

@kevina kevina commented Nov 23, 2016

Make the channel for the output of RmBlocks large enough to hold any result to avoid blocking while holding the GCLock. Otherwise if you remove a large number of blocks and do something like:

  ipfs block rm ... | less

The GCLock will be held indefinitely blocking all pinning related operations.

Make the channel for the output of RmBlocks large enough to hold any
result to avoid blocking while holding the GCLock.

License: MIT
Signed-off-by: Kevin Atkinson <[email protected]>
@kevina kevina added the status/in-progress In progress label Nov 23, 2016
Copy link
Member

@whyrusleeping whyrusleeping left a comment

Choose a reason for hiding this comment

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

LGTM

@whyrusleeping whyrusleeping merged commit e855047 into master Nov 30, 2016
@whyrusleeping whyrusleeping deleted the kevina/rmblock-noblock branch November 30, 2016 18:52
@whyrusleeping whyrusleeping removed the status/in-progress In progress label Nov 30, 2016
@ghost ghost mentioned this pull request Dec 23, 2016
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