This commit is contained in:
Joey Hess 2019-03-07 13:28:18 -04:00
parent 50797ee2c5
commit 3f449f845e
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 8 additions and 4 deletions

View file

@ -157,7 +157,7 @@ adjustExportImport r = case M.lookup "exporttree" (config r) of
Just newcid -> do
liftIO $ ContentIdentifier.recordContentIdentifier db (uuid r') newcid k
recordContentIdentifier (uuid r') newcid k
return True
return True
, removeExport = \k loc -> do
db <- getciddb ciddbv
removeExportWithContentIdentifier (importActions r') k loc

View file

@ -10,9 +10,13 @@ this.
## implementation notes
* getknowncids should run "updateexportdb exportdb exportdbv"
to make sure it sees the most current data,
but that leads to a STM deadlock for some reason?
* getknowncids needs to update the export db when the git-annex branch is
newer, otherwise it can miss the most recent information
Note that updating the db needs to write lock it.
* Remote.Helper.ExportImport calls recordContentIdentifier on a database
that is not write locked.
* Need to support annex-tracking-branch configuration, which documentation
says makes git-annex sync and assistant do imports.