ref: 36bb351d73932b34709dc35ebe37f480b3a0a6fd
parent: 8600b32050fa21d63baf4b21e75f8fc71fcfc610
author: Runxi Yu <me@runxiyu.org>
date: Sat Feb 21 14:55:48 EST 2026
objectstore/packed: Best-effort touchCandidate
--- a/objectstore/packed/idx_lookup_candidates.go
+++ b/objectstore/packed/idx_lookup_candidates.go
@@ -124,8 +124,11 @@
}
// touchCandidate moves one candidate to the front of the lookup order.
+// This is done on a best-effort basis.
func (store *Store) touchCandidate(packName string) {- store.candidatesMu.Lock()
+ if !store.candidatesMu.TryLock() {+ return
+ }
defer store.candidatesMu.Unlock()
node := store.candidateNodeByPack[packName]
--
⑨