Watch
1
0
Fork
You've already forked pkg-proxy
1
mirror of https://github.com/git-pkgs/proxy.git synced 2026-11-09 23:59:16 -05:00
pkg-proxy/internal/database
Repository files (latest commit first)
Filename Latest commit message Latest commit date
montehurd 436155e50c Clear before deleting on eviction, and requeue failed reclaims
Eviction deleted an object before checking its record still pointed at
it. If a refetch had moved the record, that object was queued and a
request that read the record earlier could still be opening it. Eviction
now clears first, skips the delete if the record moved, and queues the
object when the delete fails after a clear.

Reclaim queues a failed delete again, which moves it behind the rest, so
objects the backend keeps refusing cannot fill every batch.

Also drop the clearArtifactCache passthrough and ClearCachedArtifact's
unused context, note that only tests call ArtifactPath, and document that
max_size does not count objects waiting to be reclaimed.
2026-09-29 10:24:22 -07:00
..
database.go fix(database): set connection pool limits for Postgres (#350) 2026-09-16 08:13:38 +01:00
database_test.go Give each fetch its own storage path 2026-09-23 16:14:43 -07:00
metadata_cache_test.go fix(handler): preserve upstream content-encoding for cached metadata (#304) 2026-09-03 09:58:58 +01:00
pending_deletes_test.go Give each fetch its own storage path 2026-09-23 16:14:43 -07:00
postgres_pool_test.go fix(database): set connection pool limits for Postgres (#350) 2026-09-16 08:13:38 +01:00
queries.go Clear before deleting on eviction, and requeue failed reclaims 2026-09-29 10:24:22 -07:00
queries_packages_list_test.go Fix all golangci-lint issues across the codebase (#32) 2026-03-18 10:59:29 +00:00
schema.go Give each fetch its own storage path 2026-09-23 16:14:43 -07:00
types.go Use shared artifacts at cache boundaries (#267) 2026-09-04 10:58:22 +01:00
version_purl_test.go fix: decode PURL percent-encoding in versions and package paths (#244) 2026-08-14 10:38:08 +01:00