-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
The add command's addAllAndPin function doesn't hold the pin lock #4561
Comments
@Stebalien Is someone working on this? I'm interested to learn more about the locking system while adding/pinning, as it's something I stumbled upon while working on #4650. |
Nope. All yours! |
@Stebalien The exported So the proposal would be:
As side note, I'm having trouble understanding the purpose of |
You're right, it's a "don't GC" lock. So, being able to add individual files is nice. We'll want to discuss this a bit before we get rid of that ability. Ideally, anything added with the adder should be temporarily pinned until we call @lgierth any opinions on this API? |
hey @schomatis , are you still doing for this?if you do not finish, maybe i can help.because i am learn more about the add/pin.So i think maybe i can have a try. |
Great! But we should first check with @Stebalien the status of this issue |
Thx a lot @schomatis. If this issue is still pending,please ping me @Stebalien . |
Hey @schomatis @Stebalien , i have create a pr #5506 about this issue . Could you help me review it? |
While the file adder does hold the pin lock while adding a single file, the outer
addAllAndPin
function doesn't. This means that we can GC between adding and pinning.The text was updated successfully, but these errors were encountered: