MCPcopy Create free account
hub / github.com/couchbase/moss / FetchRefCount

Method FetchRefCount

file.go:126–136  ·  view source on GitHub ↗

FetchRefCount fetches the ref-count on the file ref.

()

Source from the content-addressed store, hash-verified

124
125// FetchRefCount fetches the ref-count on the file ref.
126func (r *FileRef) FetchRefCount() int {
127 if r == nil {
128 return 0
129 }
130
131 r.m.Lock()
132 ref := r.refs
133 r.m.Unlock()
134
135 return ref
136}
137
138// --------------------------------------------------------
139

Callers 1

allFilesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected