git-annex/Database
Joey Hess 529f488ec4
fix a thundering herd problem
Avoid repeatedly opening keys db when accessing a local git remote and -J
is used.

What was happening was that Remote.Git.onLocal created a new annex state
as each thread started up. The way the MVar was used did not prevent that.
And that, in turn, led to repeated opening of the keys db, as well as
probably other extra work or resource use.

Also managed to get rid of Annex.remoteannexstate, and it turned out there
was an unncessary Maybe in the keysdbhandle, since the handle starts out
closed.
2020-04-17 17:09:29 -04:00
..
Keys Merge branch 'master' into v8 2020-02-19 14:32:11 -04:00
Benchmark.hs merging sqlite and bs branches 2019-12-06 15:30:45 -04:00
ContentIdentifier.hs Merge branch 'master' into v8 2020-02-19 14:32:11 -04:00
Export.hs Merge branch 'master' into v8 2020-02-19 14:32:11 -04:00
Fsck.hs Merge branch 'master' into v8 2020-02-19 14:32:11 -04:00
Handle.hs display sqlite error message when it crashes 2019-10-24 11:50:55 -04:00
Init.hs mostly finished with createDirectoryUnder conversion 2020-03-06 11:57:15 -04:00
Keys.hs fix a thundering herd problem 2020-04-17 17:09:29 -04:00
Queue.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Types.hs started converting Ref from String to ByteString 2020-04-06 17:14:49 -04:00