RepoSize concurrency fix

When loading the journalled repo sizes, make sure that the current
process is prevented from making changes to the journal in another
thread.
This commit is contained in:
Joey Hess 2024-08-15 13:37:41 -04:00
parent 06064f897c
commit a2da9c526b
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 23 additions and 22 deletions

View file

@ -32,12 +32,6 @@ Planned schedule of work:
* Implement [[track_free_space_in_repos_via_git-annex_branch]]:
* When calling journalledRepoSizes make sure that the current
process is prevented from making changes to the journal in another
thread. Probably lock the journal? (No need to worry about changes made
by other processes; Annex.reposizes does not need to be kept current
with what other processes might be doing.)
* updateRepoSizes incrementally when the git-annex branch sha in the
database is older than the current git-annex branch. Diff from old to
new branch to efficiently update.