fix Annex.repoSize sharing between threads

This commit is contained in:
Joey Hess 2024-08-16 10:56:51 -04:00
parent e361b9ea3c
commit 61d95627f3
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 56 additions and 46 deletions

View file

@ -39,10 +39,6 @@ Planned schedule of work:
Note ideas in above todo about doing this at git-annex branch merge
time to reuse the git diff done there.
* Annex.reposizes is not shared amoung threads, so duplicate work
to populate it, and threads won't learn about changes made by other
threads.
* What if 2 concurrent threads are considering sending two different
keys to a repo at the same time. It can hold either but not both.
It should avoid sending both in this situation. (Also discussed in