aboutsummaryrefslogtreecommitdiff
path: root/Assistant/Threads/Merger.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-05-16 14:55:05 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-05-16 14:55:05 -0400
commit8e9a8b42470e979fdf9aef9c87b2d7d36aa89c64 (patch)
tree577b39126866cf44d80d03abb44857ef8e90a0e6 /Assistant/Threads/Merger.hs
parent51ec94f83c66c6a6811e5c20ffa55aa32acdecf1 (diff)
reorder associated file db update
There's a potential race where the smudge filter is run at the same time an object is being downloaded. If the download finished after the inAnnex check, and before the keys db was updated, the associated file would not get updated with the downloaded content. I'm not sure this closes the race; it may only narrow the window. Problem is, the keys database needs to communicate between two different processes. In the case of the assistant, the transferkeys command is the other process, and it closes the db handle after getting the file. So, it should re-open the database and so see the update that the smudge filter has written to it. But, what if the smudge filter takes a while to update the database?
Diffstat (limited to 'Assistant/Threads/Merger.hs')
0 files changed, 0 insertions, 0 deletions