mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 20:17:03 +01:00
aa7346c007
- 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 |
||
---|---|---|
.. | ||
authorizedkeys.go | ||
breaking.go | ||
checkOldArchives.go | ||
dbconsistency.go | ||
dbversion.go | ||
doctor.go | ||
fix8312.go | ||
fix16961.go | ||
fix16961_test.go | ||
heads.go | ||
lfs.go | ||
mergebase.go | ||
misc.go | ||
paths.go | ||
push_mirror_consistency.go | ||
repository.go | ||
storage.go | ||
usertype.go |