git-annex/Database
Joey Hess 6ab14710fc
fix consistency bug reading from export database
The export database has writes made to it and then expects to read back
the same data immediately. But, the way that Database.Handle does
writes, in order to support multiple writers, makes that not work, due
to caching issues. This resulted in export re-uploading files it had
already successfully renamed into place.

Fixed by allowing databases to be opened in MultiWriter or SingleWriter
mode. The export database only needs to support a single writer; it does
not make sense for multiple exports to run at the same time to the same
special remote.

All other databases still use MultiWriter mode. And by inspection,
nothing else in git-annex seems to be relying on being able to
immediately query for changes that were just written to the database.

This commit was supported by the NSF-funded DataLad project.
2017-09-06 17:19:07 -04:00
..
Keys refactor 2016-10-17 14:58:33 -04:00
Export.hs fix consistency bug reading from export database 2017-09-06 17:19:07 -04:00
Fsck.hs fix consistency bug reading from export database 2017-09-06 17:19:07 -04:00
Handle.hs fix consistency bug reading from export database 2017-09-06 17:19:07 -04:00
Init.hs Work around sqlite's incorrect handling of umask when creating databases. 2017-02-13 17:39:16 -04:00
Keys.hs fix consistency bug reading from export database 2017-09-06 17:19:07 -04:00
Queue.hs fix consistency bug reading from export database 2017-09-06 17:19:07 -04:00
Types.hs factor non-type stuff out of Key 2017-02-24 13:42:30 -04:00