diff options
| author | 2026-03-08 15:33:36 +0800 | |
|---|---|---|
| committer | 2026-03-08 15:44:32 +0800 | |
| commit | dd027e1e5379019bfeffc48ff1274b5e05581ff3 (patch) | |
| tree | 1f6b8f55957e706eeed801079ab42f3069085746 /objectstore/packed/trailer_match.go | |
| parent | format/pack/ingest: Thin fix error handling (diff) | |
| signature | No signature | |
objectstore: Refresh v0.1.80
* Add manual Refresh for various objectstore's
* RefreshPolicy option
* Refreshable MRU and atomic snapshotting
Diffstat (limited to 'objectstore/packed/trailer_match.go')
| -rw-r--r-- | objectstore/packed/trailer_match.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/objectstore/packed/trailer_match.go b/objectstore/packed/trailer_match.go index 25337cd7..dc43e37d 100644 --- a/objectstore/packed/trailer_match.go +++ b/objectstore/packed/trailer_match.go @@ -5,12 +5,12 @@ import "fmt" // verifyPackMatchesIndexes checks that one opened pack's trailer hash matches // every loaded index that references the same pack name. func (store *Store) verifyPackMatchesIndexes(pack *packFile) error { - err := store.ensureCandidates() + snapshot, err := store.ensureCandidates() if err != nil { return err } - candidate, ok := store.candidateForPack(pack.name) + candidate, ok := snapshot.candidateByPack[pack.name] if !ok { return fmt.Errorf("objectstore/packed: missing index for pack %q", pack.name) } |
