From 168752ca3b7615d36e6f153f767422847224ef22 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 19 Oct 2012 13:33:11 -0400 Subject: [PATCH] race --- doc/design/assistant/transfer_control.mdwn | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/design/assistant/transfer_control.mdwn b/doc/design/assistant/transfer_control.mdwn index 129a2304d0..1c31b85e76 100644 --- a/doc/design/assistant/transfer_control.mdwn +++ b/doc/design/assistant/transfer_control.mdwn @@ -17,8 +17,11 @@ something smart with such remotes. time more uploads and downloads are queued. It would be better to drop as much content as possible upfront, to keep the total annex size as small as possible. How to do that without making two expensive scans? +* The TransferWatcher's finishedTransfer function relies on the location + log having been updated after a transfer. But there's a race; if the + log is not updated in time, it will fail to drop unwanted content. -### dropping no longer preferred content TODO +### dropping no longer preferred content When a file is renamed, it might stop being preferred, so could be checked and dropped. (If there's multiple links to