git-annex/debian
Joey Hess 1d388d5579 fixed the race breaking moving files from archive in direct mode
assistant: Fix bug in direct mode that could occur when a symlink is moved
out of an archive directory, and resulted in the file not being set to
direct mode when it was transferred.

The bug was that the direct mode mapping was not up-to-date when the
transferrer finished. So, finding no direct mode place to store the object,
it was put into .git/annex in indirect mode.

To fix this, just make the watcher update the direct mode mapping to
include the new file before it starts the transfer. (Seems we don't need to
update it to remove the old file if the link was moved, because the direct
mode code will notice it's not present and the mapping gets updated for its
removal later.)

The reason this was a race, and was probably not seen often is because
the committer came along and updated the direct mode mapping as part of
adding the moved symlink. But when the file was sufficiently small or
the remote sufficiently fast, this could happen after the transfer
finished.
2013-03-04 14:25:22 -04:00
..
changelog fixed the race breaking moving files from archive in direct mode 2013-03-04 14:25:22 -04:00
compat debhelper v9 2012-01-15 14:53:38 -04:00
control use Setup.hs rather than depending on cabal-install 2013-02-28 16:08:11 -04:00
copyright copyright update 2013-01-12 13:27:48 -04:00
doc-base Add doc-base file. Closes: #621408 2011-04-06 21:57:22 -04:00
NEWS releasing version 3.20120123 2012-01-23 15:09:50 -04:00
rules cleanup 2013-02-27 15:53:19 -04:00