1
0
Fork 0
forgejo/models
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
activities [Port] gitea#29930: Move notifications to a standalone file 2024-03-28 14:21:42 +01:00
admin
asymkey models/asymkey: Implement Tag verification 2024-04-01 13:42:11 +00:00
auth
avatars
db [FEAT] Mark database errors in tests as failure 2024-04-02 15:00:58 +00:00
dbfs
fixtures [TESTS] pull review deleted from gitea#29888 2024-04-03 08:13:14 +00:00
forgejo/semver
forgejo_migrations [FEAT] Configure if protected branch rule should apply to admins 2024-04-01 19:31:43 +00:00
git Refactor LFS GC functions 2024-04-06 07:41:40 +00:00
issues [GITEA] Apply changes to archived labels 2024-04-03 20:14:39 +00:00
migrations Fix migration v292 (#30153) 2024-03-30 07:17:32 +01:00
organization
packages
perm
project Fix migration v292 (#30153) 2024-03-30 07:17:32 +01:00
pull
repo [I18N] Allow custom repo size format 2024-04-02 18:04:32 +00:00
secret
shared/types
system
unit
unittest
user [BUG] Don't delete inactive emails explicitly 2024-03-29 15:14:09 +01:00
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go
org.go
org_team.go
org_team_test.go
org_test.go
repo.go
repo_test.go
repo_transfer.go
repo_transfer_test.go