Make git_mwindow_files_init() threadsafe.#3876
Conversation
This fixes issue #3875.
|
Can you provide some analysis of the problem and your solution? Right now you haven't really provided much, which means that the maintainers are going to have to try to reverse engineer the problem and your solution. Which is fine, but it's going to take us some time to sit down and think about the effects that this change will have. For example: with this change, now |
|
The problem is that git_mwindow_files_init is not protected. So if the The initialization of git__pack_cache does not form a transaction wrt I'm not too familiar with the setup of libgit2. I will note the
If you want to resolve this in another way, that is perfectly fine |
|
Thanks for the helpful writeup - this is a lovely analysis. I agree with your final assessment, that this is very much eligible to simply be created within Can you please sanity check #3879 for me and make sure that it solves your problem appropriately? Thanks! |
|
Thanks for digging in to this - I hope you don't mind that I went with the more straightforward (I think) strategy of simply running this in |
This fixes issue #3875.