MCPcopy
hub / github.com/dgraph-io/dgraph / AssertLock

Method AssertLock

x/lock.go:40–42  ·  view source on GitHub ↗

AssertLock asserts whether the lock is being held.

()

Source from the content-addressed store, hash-verified

38
39// AssertLock asserts whether the lock is being held.
40func (s *SafeMutex) AssertLock() {
41 AssertTrue(s.AlreadyLocked())
42}
43
44// RLock holds the reader lock.
45func (s *SafeMutex) RLock() {

Callers 7

handleMemberProposalMethod · 0.80
regenerateChecksumMethod · 0.80
handleTabletProposalMethod · 0.80
deleteNamespaceMethod · 0.80
updateMutationLayerMethod · 0.80
addMutationInternalMethod · 0.80

Calls 2

AlreadyLockedMethod · 0.95
AssertTrueFunction · 0.70

Tested by

no test coverage detected