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

Method updateCommitStatus

dgraph/cmd/zero/oracle.go:264–274  ·  view source on GitHub ↗
(index uint64, src *api.TxnContext)

Source from the content-addressed store, hash-verified

262}
263
264func (o *Oracle) updateCommitStatus(index uint64, src *api.TxnContext) {
265 // TODO: We should check if the tablet is in read-only status here.
266 if o.updateCommitStatusHelper(index, src) {
267 delta := new(pb.OracleDelta)
268 delta.Txns = append(delta.Txns, &pb.TxnStatus{
269 StartTs: src.StartTs,
270 CommitTs: o.commitTs(src.StartTs),
271 })
272 o.updates <- delta
273 }
274}
275
276func (o *Oracle) commitTs(startTs uint64) uint64 {
277 o.RLock()

Callers 1

applyProposalMethod · 0.80

Calls 2

commitTsMethod · 0.95

Tested by

no test coverage detected