application-research / autoretrieve

A server to make GraphSync data accessible on IPFS
22 stars 7 forks source link

Blockstore deadlock #9

Closed elijaharita closed 2 years ago

elijaharita commented 2 years ago

from hannah - "I think you’ve got a deadlock in your code after this commit to autoretrieve — https://github.com/application-research/autoretrieve/commit/be0a8b3c1f5d519df6260876324a5388d6abadd5 -- Put takes the lock and doesn’t release till the end, but then calls notifyWaitCallback which attempts to take the lock from within the lock Put has taken. Fix incoming I think though I’m not the expert here."

elijaharita commented 2 years ago

fixed by 557b921a799d4a2197568fd8ee932db4bd6093ae