diff options
| author | Julie Qiu <julie@golang.org> | 2021-08-13 11:10:37 -0400 |
|---|---|---|
| committer | Julie Qiu <julie@golang.org> | 2021-09-14 14:59:04 +0000 |
| commit | 7f60b22a0b5e8732e49b2bcf6cf1454e9773a379 (patch) | |
| tree | 487250893f30b3144fdb9bdb03927c261b25dae7 /internal/queue/queue.go | |
| parent | 70ec08479ed61dd69e1f4dd35d67f658133745d0 (diff) | |
| download | go-x-pkgsite-7f60b22a0b5e8732e49b2bcf6cf1454e9773a379.tar.xz | |
internal/worker: insert module if not in module_version_states
If a module is introduced for the first time to pkgsite through frontend
fetch, and not the index, it won't have a row in module_version_states.
A row is now inserted before the fetch process begins if the proxy's
info endpoint tells us that this is a valid module.
This fixes a bug in the fetch flow where
module_version_states.last_processed_at is not updated in
upsertModuleVersionState if a row did not already exist.
For golang/go#46985
Change-Id: I2a166228df20b1fb935bbabebb5a651da0e2c1ba
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/341892
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Diffstat (limited to 'internal/queue/queue.go')
0 files changed, 0 insertions, 0 deletions
