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:
parent
06064f897c
commit
a2da9c526b
2 changed files with 23 additions and 22 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue