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

Method currentState

dgraph/cmd/zero/oracle.go:144–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142}
143
144func (o *Oracle) currentState() *pb.OracleDelta {
145 o.AssertRLock()
146 resp := &pb.OracleDelta{}
147 for start, commit := range o.commits {
148 resp.Txns = append(resp.Txns,
149 &pb.TxnStatus{StartTs: start, CommitTs: commit})
150 }
151 resp.MaxAssigned = o.maxAssigned
152 return resp
153}
154
155func (o *Oracle) newSubscriber() (<-chan pb.OracleDelta, int) {
156 o.Lock()

Callers 1

newSubscriberMethod · 0.95

Calls 1

AssertRLockMethod · 0.80

Tested by

no test coverage detected