diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2025-01-08 15:26:05 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-01-13 16:22:13 +0100 |
commit | 3df8a3cd34a6f726f4f249c2c735bcff0e232abd (patch) | |
tree | e01e2204899aba22710535ca6c0f8e498e476fd9 /src/other_tools/utils/parse_archive.cpp | |
parent | 43a8afd25367190a15942fa47bfef1ed06b2b4cf (diff) | |
download | justbuild-3df8a3cd34a6f726f4f249c2c735bcff0e232abd.tar.gz |
source tree service: Fix ensuring Git cache root
This is an amendment to the changes in commit 8234079, as the
underlying issue was only partially solved there. While the call to
GitRepo::InitAndOpen is in itself properly guarded, it does not
share a lock with the call to create the path to the Git cache if
it is missing.
Fix this by moving the call to the method ensuring the Git cache
initialization to after acquiring the Git cache root garbage
collector shared lock.
(cherry-picked from 7d0a4df3822ca194d93abb6b65d0ebb264cc1974)
Diffstat (limited to 'src/other_tools/utils/parse_archive.cpp')
0 files changed, 0 insertions, 0 deletions