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

Method GetTimestamp

worker/server_state.go:153–157  ·  view source on GitHub ↗
(readOnly bool)

Source from the content-addressed store, hash-verified

151}
152
153func (s *ServerState) GetTimestamp(readOnly bool) uint64 {
154 tr := tsReq{readOnly: readOnly, ch: make(chan uint64)}
155 s.needTs <- tr
156 return <-tr.ch
157}
158
159func (s *ServerState) fillTimestampRequests() {
160 const (

Callers 8

UpdateGQLSchemaFunction · 0.80
alterMethod · 0.80
doQueryMethod · 0.80
processQueryFunction · 0.80
UpdateGraphQLSchemaMethod · 0.80
ProcessRestoreRequestFunction · 0.80
applyCommittedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected