git-annex/Database
Joey Hess f89a1b8216
remove stale live changes from reposize database
Reorganized the reposize database directory, and split up a column.

checkStaleSizeChanges needs to run before needLiveUpdate,
otherwise the process won't be holding a lock on its pid file, and
another process could go in and expire the live update it records. It
just so happens that they do get called in the correct order, since
checking balanced preferred content calls getLiveRepoSizes before
needLiveUpdate.

The 1 minute delay between checks is arbitrary, but will avoid excess
work. The downside of it is that, if a process is dropping a file and
gets interrupted, for 1 minute another process can expect a repository
will soon be smaller than it is. And so a process might send data to a
repository when a file is not really going to be dropped from it. But
note that can already happen if a drop takes some time in eg locking and
then fails. So it seems possible that live updates should only be
allowed to increase, rather than decrease the size of a repository.
2024-08-28 13:57:25 -04:00
..
Keys sqlite datbase for importfeed 2023-10-23 16:46:22 -04:00
RepoSize remove stale live changes from reposize database 2024-08-28 13:57:25 -04:00
Benchmark.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00
ContentIdentifier.hs update 2024-03-08 14:32:29 -04:00
Export.hs sqlite datbase for importfeed 2023-10-23 16:46:22 -04:00
Fsck.hs enable TypeOperators 2023-08-01 18:33:39 -04:00
Handle.hs run codespell throughout fixing typos automagically 2024-05-01 15:46:21 -04:00
ImportFeed.hs implement journalledRepoSizes 2024-08-14 13:53:24 -04:00
Init.hs use RawFilePath for opening sqlite databases 2023-12-26 18:31:52 -04:00
Keys.hs update RepoSize database from git-annex branch incrementally 2024-08-17 13:35:00 -04:00
Queue.hs added reposize database 2024-08-12 11:19:58 -04:00
RawFilePath.hs avoid build warnings 2023-12-26 19:39:01 -04:00
RepoSize.hs remove stale live changes from reposize database 2024-08-28 13:57:25 -04:00
Types.hs sqlite datbase for importfeed 2023-10-23 16:46:22 -04:00
Utility.hs Sped up sqlite inserts 2x when built with persistent 2.14.5.0 2023-03-31 14:38:25 -04:00