aboutsummaryrefslogtreecommitdiff
path: root/objectstore/packed/idx_lookup_candidates.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-22 23:47:55 +0000
committerGravatar Runxi Yu2026-03-22 23:47:55 +0000
commit0f67e6f5f29d765105a1c48017de37df12755417 (patch)
tree45b33ce39bed8207f244db89da196f59938b3f74 /objectstore/packed/idx_lookup_candidates.go
parentreceivepack/service: Clarify ownership and requirements (diff)
signatureNo signature
objectstore/packed: Document refresh semantics v0.1.90
Diffstat (limited to 'objectstore/packed/idx_lookup_candidates.go')
-rw-r--r--objectstore/packed/idx_lookup_candidates.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/objectstore/packed/idx_lookup_candidates.go b/objectstore/packed/idx_lookup_candidates.go
index e69d07d7..a2de262a 100644
--- a/objectstore/packed/idx_lookup_candidates.go
+++ b/objectstore/packed/idx_lookup_candidates.go
@@ -22,7 +22,12 @@ type candidateSnapshot struct {
candidateByPack map[string]packCandidate
}
-// Refresh rescans objects/pack and atomically installs a fresh candidate list.
+// Refresh rescans objects/pack and atomically installs a fresh candidate list
+// for future lookups.
+//
+// Refresh does not invalidate existing readers. Cached pack/index mappings,
+// including ones for previously visible candidates, may be retained until
+// Close.
func (store *Store) Refresh() error {
store.refreshMu.Lock()
defer store.refreshMu.Unlock()