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

Method addRef

wrap.go:35–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35func (w *SnapshotWrapper) addRef() *SnapshotWrapper {
36 if w != nil {
37 w.m.Lock()
38 w.refCount++
39 w.m.Unlock()
40 }
41
42 return w
43}
44
45func (w *SnapshotWrapper) decRef() (err error) {
46 w.m.Lock()

Callers 7

reuseSnapshotFunction · 0.45
snapshotMethod · 0.45
getMethod · 0.45
mergeMethod · 0.45
startIteratorMethod · 0.45
mergerMainMethod · 0.45
mergerNotifyPersisterMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected