MCPcopy
hub / github.com/seaweedfs/seaweedfs / Lock

Struct Lock

weed/cluster/lock_manager/lock_manager.go:25–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 nextGeneration atomic.Int64
24}
25type Lock struct {
26 Token string
27 ExpiredAtNs int64
28 Key string // only used for moving locks
29 Owner string
30 IsBackup bool // true if this node holds the lock as a backup
31 Generation int64 // monotonic fencing token, increments on fresh acquisition
32 Seq int64 // per-lock sequence number, increments on every mutation (acquire/renew/unlock)
33}
34
35func NewLockManager() *LockManager {
36 t := &LockManager{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected