7ffa7f5bce
- 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
|
||
---|---|---|
.. | ||
archiver | ||
commitstatus | ||
files | ||
adopt.go | ||
adopt_test.go | ||
avatar.go | ||
avatar_test.go | ||
branch.go | ||
cache.go | ||
check.go | ||
collaboration.go | ||
collaboration_test.go | ||
commit.go | ||
contributors_graph.go | ||
contributors_graph_test.go | ||
create.go | ||
create_test.go | ||
delete.go | ||
delete_test.go | ||
fork.go | ||
fork_test.go | ||
generate.go | ||
generate_test.go | ||
hooks.go | ||
init.go | ||
lfs.go | ||
lfs_test.go | ||
main_test.go | ||
migrate.go | ||
push.go | ||
repository.go | ||
repository_test.go | ||
review.go | ||
review_test.go | ||
setting.go | ||
template.go | ||
transfer.go | ||
transfer_test.go |