Skip to content

Commit

Permalink
fix(dgraph): sentry nil pointer check (#6372) (#6375)
Browse files Browse the repository at this point in the history
(cherry picked from commit 7857fa2)
  • Loading branch information
parasssh committed Sep 3, 2020
1 parent e273e86 commit 13ad2af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions edgraph/server.go
Expand Up @@ -350,6 +350,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 13ad2af

Please sign in to comment.