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

Method startTask

worker/draft.go:106–108  ·  view source on GitHub ↗

startTask is used for the tasks that do not require tracking of timestamp. Currently, only the timestamps for backup and indexing needs to be tracked because they can run concurrently.

(id op)

Source from the content-addressed store, hash-verified

104// Currently, only the timestamps for backup and indexing needs to be tracked because they can
105// run concurrently.
106func (n *node) startTask(id op) (*z.Closer, error) {
107 return n.startTaskAtTs(id, 0)
108}
109
110// startTaskAtTs is used to check whether an op is already running. If a rollup is running,
111// it is canceled and startTask will wait until it completes before returning.

Callers 6

startTaskAtTsMethod · 0.95
applyCommittedMethod · 0.95
retrieveSnapshotMethod · 0.95
InitAndStartNodeMethod · 0.95
StreamSnapshotMethod · 0.80
movePredicateHelperFunction · 0.80

Calls 1

startTaskAtTsMethod · 0.95

Tested by

no test coverage detected