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

Method AddRef

store_api.go:197–203  ·  view source on GitHub ↗

AddRef increases the ref count on each SegmentLoc in this SegmentLocs

()

Source from the content-addressed store, hash-verified

195
196// AddRef increases the ref count on each SegmentLoc in this SegmentLocs
197func (slocs SegmentLocs) AddRef() {
198 for _, sloc := range slocs {
199 if sloc.mref != nil {
200 sloc.mref.AddRef()
201 }
202 }
203}
204
205// DecRef decreases the ref count on each SegmentLoc in this SegmentLocs
206func (slocs SegmentLocs) DecRef() {

Callers

nothing calls this directly

Calls 1

AddRefMethod · 0.45

Tested by

no test coverage detected