summaryrefslogtreecommitdiff
path: root/tests-clar/diff/tree.c
diff options
context:
space:
mode:
authorMichael Schubert <schu@schu.io>2012-09-14 21:33:50 +0200
committerMichael Schubert <schu@schu.io>2012-09-14 22:35:10 +0200
commit3d7617e49e22053e3a34061fc6f109d27c67d1d2 (patch)
tree8919f2ca3b044c29fee1d96566ceec95e7723a56 /tests-clar/diff/tree.c
parentb200a813c090c2ccf12ee4b5a99b45300fead2e8 (diff)
downloadlibgit2-3d7617e49e22053e3a34061fc6f109d27c67d1d2.tar.gz
odb_pack: fix race condition
last_found is the last packfile a wanted object was found in. Since last_found is shared among all searching threads, it might changes while we're searching. As suggested by @arrbee, put a copy on the stack to fix the race condition.
Diffstat (limited to 'tests-clar/diff/tree.c')
0 files changed, 0 insertions, 0 deletions