MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / AssertRLock

Method AssertRLock

x/lock.go:57–60  ·  view source on GitHub ↗

AssertRLock asserts whether the reader lock is being held.

()

Source from the content-addressed store, hash-verified

55
56// AssertRLock asserts whether the reader lock is being held.
57func (s *SafeMutex) AssertRLock() {
58 AssertTrue(atomic.LoadInt32(&s.readers) > 0 ||
59 atomic.LoadInt32(&s.writer) == 1)
60}

Callers 15

memberMethod · 0.80
hasLeaderMethod · 0.80
servingTabletMethod · 0.80
currentStateMethod · 0.80
copyListFunction · 0.80
iterateMethod · 0.80
GetLengthMethod · 0.80
immutableLayerLenMethod · 0.80
getPostingAndLengthMethod · 0.80
lengthMethod · 0.80
rollupMethod · 0.80

Calls 1

AssertTrueFunction · 0.70

Tested by

no test coverage detected