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

Method mutate

dgraph/cmd/live/batch.go:158–169  ·  view source on GitHub ↗
(req *request)

Source from the content-addressed store, hash-verified

156}
157
158func (l *loader) mutate(req *request) error {
159 atomic.AddInt32(&l.inflight, 1)
160 defer atomic.AddInt32(&l.inflight, -1)
161 txn := l.dc.NewTxn()
162 req.CommitNow = true
163 request := &api.Request{
164 CommitNow: true,
165 Mutations: []*api.Mutation{req.Mutation},
166 }
167 _, err := txn.Do(l.opts.Ctx, request)
168 return err
169}
170
171func (l *loader) request(req *request) {
172 err := l.mutate(req)

Callers 2

infinitelyRetryMethod · 0.95
requestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected