git-annex/Database
Joey Hess 622da992f8
reorder database shutdown to be concurrency safe
If a DbHandle is in use by another thread, it could be queueing changes
while shutdown is running. So, wait for the worker to finish before
flushing the queue, so that any last-minute writes are included. Before
this fix, they would be silently dropped.

Of course, if the other thread continues to try to use a DbHandle once it's
closed, it will block forever as the worker is no longer reading from the
jobs MVar. So, that would crash with
"thread blocked indefinitely in an MVar operation".
2015-12-16 13:52:43 -04:00
..
Keys add inode cache to the db 2015-12-09 17:00:37 -04:00
Fsck.hs associated files database 2015-12-07 14:35:37 -04:00
Handle.hs reorder database shutdown to be concurrency safe 2015-12-16 13:52:43 -04:00
Keys.hs comment 2015-12-16 13:24:45 -04:00
Types.hs add inode cache to the db 2015-12-09 17:00:37 -04:00