0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-03-04 10:41:33 -05:00
forgejo/services
Gusted aa7346c007 Refactor LFS GC functions
- Remove options that currently aren't set
on `GarbageCollectLFSMetaObjectsOptions` and
`IterateLFSMetaObjectsForRepoOptions`.
- Simplify `IterateRepositoryIDsWithLFSMetaObjects` and
`IterateLFSMetaObjectsForRepo`.
- `IterateLFSMetaObjectsForRepo` was previously able to get in a
loop (`gc-lfs` doctor check was able to reproduce this) because the code
expected that the records would be updated to not match the SQL query,
but that wasn't the case. Simply enforce that only records higher than
the latest `id` from the previous iteration are allowed.
- For `gc-lfs` doctor check this was because `UpdatedLessRecentlyThan`
option was not set, which caused that records just marked as active in
the iteration weren't being filtered.
- Add unit tests
- Most likely a regression from 2cc3a6381c.
- The bug with `gc-lfs` was found on Codeberg.

(cherry picked from commit 7ffa7f5bce)
2024-04-06 07:41:40 +00:00
..
actions Merge pull request '[ACTIONS] port scheduled actions from Gitea' (#2826) from earl-warren/forgejo:wip-gitea-schedule into forgejo 2024-03-27 06:23:56 +00:00
agit
asymkey
attachment
auth Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
automerge
context Merge pull request '[PORT] Unify search boxes (gitea#29530)' (#2688) from snematoda/port-29530 into forgejo 2024-03-24 05:33:13 +00:00
contexttest add label filters in org/{org_name}/issues 2024-04-04 17:37:56 +00:00
convert [FEAT] Configure if protected branch rule should apply to admins 2024-04-01 19:31:43 +00:00
cron
doctor Refactor LFS GC functions 2024-04-06 07:41:40 +00:00
externalaccount
feed
forgejo
forms [REFACTOR] webhook shared code to prevent import cycles 2024-04-05 19:36:03 +00:00
gitdiff [PERFORMANCE] git check-attr on bare repo if supported 2024-03-28 10:52:51 +01:00
indexer
issue [Port] gitea#29999: Fix Add/Remove WIP on pull request title failure 2024-03-29 12:21:51 +01:00
lfs
mailer Use relative links for commits, mentions, and issues in markdown (#29427) 2024-03-20 08:46:28 +01:00
markup [v7.0/forgejo] Render inline file permalinks 2024-04-01 16:15:58 +02:00
migrations Fix duplicate migrated milestones (#30102) 2024-03-30 07:17:30 +01:00
mirror Use repo object format name instead of detecting from git repository (#29702) 2024-03-20 08:46:28 +01:00
notify
org
packages packages: skip error logging on duplicate 2024-03-24 07:12:31 +01:00
pull [FEAT] Configure if protected branch rule should apply to admins 2024-04-01 19:31:43 +00:00
release Use repo object format name instead of detecting from git repository (#29702) 2024-03-20 08:46:28 +01:00
repository Refactor LFS GC functions 2024-04-06 07:41:40 +00:00
secrets
task
uinotification
user [BUG] Don't delete inactive emails explicitly 2024-03-29 15:14:09 +01:00
webhook [FEAT] sourcehut webhooks 2024-04-05 19:36:04 +00:00
wiki Fix an actions schedule bug (#28942) 2024-03-25 16:27:32 +01:00