Skip to content

Commit

Permalink
fix(dgraph): sentry nil pointer check (#6372)
Browse files Browse the repository at this point in the history
  • Loading branch information
parasssh committed Sep 2, 2020
1 parent 991f72f commit 7857fa2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions edgraph/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,9 @@ func (s *Server) doMutate(ctx context.Context, qc *queryContext, resp *api.Respo
if x.WorkerConfig.LudicrousMode {
// Mutations are automatically committed in case of ludicrous mode, so we don't
// need to manually commit.
if resp.Txn == nil {
return errors.Wrapf(err, "Txn Context is nil")
}
resp.Txn.Keys = resp.Txn.Keys[:0]
resp.Txn.CommitTs = qc.req.StartTs
return err
Expand Down

0 comments on commit 7857fa2

Please sign in to comment.