Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
27
func
(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
39
func
(r *mmapRef) DecRef() error {
40
if
r == nil {
Callers
5
persist
Method · 0.45
startOrReuseFile
Method · 0.45
testStoreCompaction
Function · 0.45
revertToSnapshot
Method · 0.45
TestMMapRef
Function · 0.45
Calls
no outgoing calls
Tested by
2
testStoreCompaction
Function · 0.36
TestMMapRef
Function · 0.36