Skip to content

Commit

Permalink
Populate the StartTs for the commit gRPC call so that clients can dou…
Browse files Browse the repository at this point in the history
…ble check the startTs still matches (hypermodeinc#3228)
  • Loading branch information
Lucas Wang authored and dna2github committed Jul 19, 2019
1 parent 4314f95 commit 085b7e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions edgraph/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ func (s *Server) CommitOrAbort(ctx context.Context, tc *api.TxnContext) (*api.Tx
tctx.Aborted = true
return tctx, status.Errorf(codes.Aborted, err.Error())
}
tctx.StartTs = tc.StartTs
tctx.CommitTs = commitTs
return tctx, err
}
Expand Down

0 comments on commit 085b7e7

Please sign in to comment.