MCPcopy
hub / github.com/CodisLabs/codis / Acquire

Method Acquire

pkg/models/store.go:118–120  ·  view source on GitHub ↗
(topom *Topom)

Source from the content-addressed store, hash-verified

116}
117
118func (s *Store) Acquire(topom *Topom) error {
119 return s.client.Create(s.LockPath(), topom.Encode())
120}
121
122func (s *Store) Release() error {
123 return s.client.Delete(s.LockPath())

Callers 1

StartMethod · 0.80

Calls 3

LockPathMethod · 0.95
CreateMethod · 0.65
EncodeMethod · 0.45

Tested by

no test coverage detected