Fix incorrect mutex unlock call in File.Open#82
Fix incorrect mutex unlock call in File.Open#82Stebalien merged 1 commit intoipfs:masterfrom djdv:patch-1
Conversation
|
Thank you for submitting this PR!
Getting other community members to do a review would be great help too on complex PRs (you can ask in the chats/forums). If you are unsure about something, just leave us a comment.
We currently aim to provide initial feedback/triaging within two business days. Please keep an eye on any labelling actions, as these will indicate priorities and status of your contribution. |
Fix incorrect mutex unlock call in File.Open This commit was moved from ipfs/go-mfs@9c9a0fe
A
File's read mutex is locked when entering the call to open with read only flags, but the mutex's write lock is being requested to release when/if defer sees an error in the call toFile.Open.