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

Method AddRef

mmap.go:27–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27func (r *mmapRef) AddRef() *mmapRef {
28 if r == nil {
29 return nil
30 }
31
32 r.m.Lock()
33 r.refs++
34 r.m.Unlock()
35
36 return r
37}
38
39func (r *mmapRef) DecRef() error {
40 if r == nil {

Callers 5

persistMethod · 0.45
startOrReuseFileMethod · 0.45
testStoreCompactionFunction · 0.45
revertToSnapshotMethod · 0.45
TestMMapRefFunction · 0.45

Calls

no outgoing calls

Tested by 2

testStoreCompactionFunction · 0.36
TestMMapRefFunction · 0.36