MCPcopy Create free account
hub / github.com/blobcache/blobcache / dropHandleNoLock

Method dropHandleNoLock

src/bccore/handles.go:52–63  ·  view source on GitHub ↗
(k [32]byte)

Source from the content-addressed store, hash-verified

50}
51
52func (hs *handleSystem) dropHandleNoLock(k [32]byte) {
53 if hs.handles == nil {
54 return
55 }
56 if h, exists := hs.handles[k]; exists {
57 hs.active[h.target] -= 1
58 if hs.active[h.target] == 0 {
59 delete(hs.active, h.target)
60 }
61 }
62 delete(hs.handles, k)
63}
64
65func (hs *handleSystem) Resolve(h blobcache.Handle) (blobcache.OID, blobcache.ActionSet) {
66 k := handleKey(h)

Callers 3

DropMethod · 0.95
DropAllForOIDMethod · 0.95
filterMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected