git-annex/Database
Joey Hess def5d8b02c
Fix potential crash in exporttree database due to failure to honor uniqueness constraint
I don't know the circumstances, but have a report of this:

git-annex: failed to commit changes to sqlite database: Just SQLite3 returned
ErrorConstraint while attempting to perform step.

All 3 tables in the export db have uniqueness constraints on them,
insertUnique is used for all the rest, but this use of insertMany
means it doesn't check the constraint. I guess that's what caused the
crash, but I have not been able to test it yet.

Use putMany when available, as it should be faster than mapM of insertMany.

This commit was sponsored by Brock Spratlen on Patreon.
2018-10-09 16:56:33 -04:00
..
Keys refactor 2016-10-17 14:58:33 -04:00
Export.hs Fix potential crash in exporttree database due to failure to honor uniqueness constraint 2018-10-09 16:56:33 -04:00
Fsck.hs fix consistency bug reading from export database 2017-09-06 17:19:07 -04:00
Handle.hs fix bug that prevented db being written to disk in SingleWriter mode 2017-09-18 19:42:20 -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 v6 deadlock with git 2.1.4 2018-09-13 13:55:25 -04:00
Queue.hs fix consistency bug reading from export database 2017-09-06 17:19:07 -04:00
Types.hs add ExportTree table to export db 2017-09-18 13:59:59 -04:00