MCPcopy Create free account
hub / github.com/cloudwan/gohan / Unlock

Method Unlock

sync/etcd/etcd.go:168–173  ·  view source on GitHub ↗

Unlock path

(path string)

Source from the content-addressed store, hash-verified

166
167//Unlock path
168func (s *Sync) Unlock(path string) error {
169 s.abortLock(path)
170 s.etcdClient.CompareAndDelete(path, s.processID, 0)
171 log.Info("Unlocked path %s", path)
172 return nil
173}
174
175func eventsFromNode(action string, node *etcd.Node, responseChan chan *sync.Event) {
176 event := &sync.Event{

Callers

nothing calls this directly

Implementers 5

Syncsync/etcd/etcd.go
MockSyncsync/mocks/sync_mock.go
MockSyncMockRecordersync/mocks/sync_mock.go
Syncsync/noop/noop.go
Syncsync/etcdv3/etcd.go

Calls 2

abortLockMethod · 0.95
InfoMethod · 0.65

Tested by

no test coverage detected