fix bug that prevented db being written to disk in SingleWriter mode

The bug occurred when closeDb was not called, and garbage collection of
the DbHandle didn't give the workerThread time to shut down. Fixed by
exiting the runSqlite action when a commit is made.

(MultiWriter mode already forked off a runSqlite action, so avoided the
problem.)

This commit was sponsored by Brock Spratlen on Patreon.
This commit is contained in:
Joey Hess 2017-09-18 19:42:20 -04:00
parent c35fd698aa
commit 5f9eff3f32
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 18 additions and 11 deletions

View file

@ -17,9 +17,6 @@ there need to be a new interface in supported remotes?
Work is in progress. Todo list:
* bug: export db update does not reash disk after Remote.Helper.Export calls
updateExportTree.
* tracking exports
* Support configuring export in the assistant