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

Method decRef

wrap.go:45–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45func (w *SnapshotWrapper) decRef() (err error) {
46 w.m.Lock()
47 w.refCount--
48 if w.refCount <= 0 {
49 if w.ss != nil {
50 err = w.ss.Close()
51 w.ss = nil
52 }
53 if w.closer != nil {
54 w.closer.Close()
55 w.closer = nil
56 }
57 }
58 w.m.Unlock()
59 return err
60}
61
62// ChildCollectionNames returns an array of child collection name strings.
63func (w *SnapshotWrapper) ChildCollectionNames() ([]string, error) {

Callers 4

CloseMethod · 0.95
getMethod · 0.45
startIteratorMethod · 0.45
mergerNotifyPersisterMethod · 0.45

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected