MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / commitTs

Function commitTs

worker/worker_test.go:34–42  ·  view source on GitHub ↗
(startTs uint64)

Source from the content-addressed store, hash-verified

32var ts uint64
33
34func commitTs(startTs uint64) uint64 {
35 commit := timestamp()
36 od := &pb.OracleDelta{
37 MaxAssigned: atomic.LoadUint64(&ts),
38 }
39 od.Txns = append(od.Txns, &pb.TxnStatus{StartTs: startTs, CommitTs: commit})
40 posting.Oracle().ProcessDelta(od)
41 return commit
42}
43
44func commitTransaction(t *testing.T, edge *pb.DirectedEdge, l *posting.List) {
45 startTs := timestamp()

Callers 1

commitTransactionFunction · 0.85

Calls 3

OracleFunction · 0.92
ProcessDeltaMethod · 0.80
timestampFunction · 0.70

Tested by

no test coverage detected