git-annex/Assistant/Threads
Joey Hess 43a9808292
disable journal read optimisation when alwayscommit=false
The journal read optimisation in aeca7c220 later got fixed in eedd73b84
to stage and commit any files that were left in the journal by a
previous git-annex run. That's necessary for the optimisation to work
correctly. But it also meant that alwayscommit=false started committing
the previous git-annex processes journalled changes, which defeated the
purpose of the config setting entirely.

So, disable the optimisation when alwayscommit=false, leaving the
files in the journal and not committing them. See my comments on the bug
report for why this seemed the best approach.

Also fixes a problem when annex.merge-annex-branches=false and there
are changes in the journal. That config indirectly prevents committing
the journal. (Which seems a bit odd given its name, but it always has..)
So, when there were changes in the journal, perhaps left there due to
alwayscommit=false being set before, the optimisation would prevent
git-annex from reading the journal files, and it would operate with out
of date information.
2020-04-15 13:24:33 -04:00
..
Committer.hs convert KeySource to RawFilePath 2020-02-21 10:04:44 -04:00
ConfigMonitor.hs convert TopFilePath to use RawFilePath 2019-12-09 15:07:21 -04:00
Cronner.hs add missing space 2019-10-03 09:46:06 -04:00
DaemonStatus.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Exporter.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Glacier.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Merger.hs disable journal read optimisation when alwayscommit=false 2020-04-15 13:24:33 -04:00
MountWatcher.hs convert TopFilePath to use RawFilePath 2019-12-09 15:07:21 -04:00
NetWatcher.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
PairListener.hs convert TopFilePath to use RawFilePath 2019-12-09 15:07:21 -04:00
ProblemFixer.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Pusher.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
RemoteControl.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
SanityChecker.hs convert TopFilePath to use RawFilePath 2019-12-09 15:07:21 -04:00
TransferPoller.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Transferrer.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
TransferScanner.hs cache the serialization of a Key 2019-11-22 17:49:16 -04:00
TransferWatcher.hs completed the createDirectoryIfMissing conversion 2020-03-06 12:55:03 -04:00
Upgrader.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
UpgradeWatcher.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Watcher.hs Ref ByteString conversion done 2020-04-07 17:41:09 -04:00
WebApp.hs convert TopFilePath to use RawFilePath 2019-12-09 15:07:21 -04:00