update
This commit is contained in:
parent
50797ee2c5
commit
3f449f845e
2 changed files with 8 additions and 4 deletions
|
@ -157,7 +157,7 @@ adjustExportImport r = case M.lookup "exporttree" (config r) of
|
||||||
Just newcid -> do
|
Just newcid -> do
|
||||||
liftIO $ ContentIdentifier.recordContentIdentifier db (uuid r') newcid k
|
liftIO $ ContentIdentifier.recordContentIdentifier db (uuid r') newcid k
|
||||||
recordContentIdentifier (uuid r') newcid k
|
recordContentIdentifier (uuid r') newcid k
|
||||||
return True
|
return True
|
||||||
, removeExport = \k loc -> do
|
, removeExport = \k loc -> do
|
||||||
db <- getciddb ciddbv
|
db <- getciddb ciddbv
|
||||||
removeExportWithContentIdentifier (importActions r') k loc
|
removeExportWithContentIdentifier (importActions r') k loc
|
||||||
|
|
|
@ -10,9 +10,13 @@ this.
|
||||||
|
|
||||||
## implementation notes
|
## implementation notes
|
||||||
|
|
||||||
* getknowncids should run "updateexportdb exportdb exportdbv"
|
* getknowncids needs to update the export db when the git-annex branch is
|
||||||
to make sure it sees the most current data,
|
newer, otherwise it can miss the most recent information
|
||||||
but that leads to a STM deadlock for some reason?
|
|
||||||
|
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
|
* Need to support annex-tracking-branch configuration, which documentation
|
||||||
says makes git-annex sync and assistant do imports.
|
says makes git-annex sync and assistant do imports.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue