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

Method Close

file.go:121–123  ·  view source on GitHub ↗

Close allows the FileRef to implement the io.Closer interface. It actually just performs what should be the final DecRef() call which takes the reference count to 0. Once 0, it allows the file to actually be closed.

()

Source from the content-addressed store, hash-verified

119// just performs what should be the final DecRef() call which takes the
120// reference count to 0. Once 0, it allows the file to actually be closed.
121func (r *FileRef) Close() error {
122 return r.DecRef()
123}
124
125// FetchRefCount fetches the ref-count on the file ref.
126func (r *FileRef) FetchRefCount() int {

Callers

nothing calls this directly

Calls 1

DecRefMethod · 0.95

Tested by

no test coverage detected