Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(datastore): Initialize commit sentinel to avoid cross use of comm…
…its (#4599)
  • Loading branch information
crwilcox committed Aug 18, 2021
1 parent 543e3bb commit fcf13b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions datastore/transaction.go
Expand Up @@ -213,6 +213,7 @@ func (t *Transaction) Commit() (c *Commit, err error) {
return nil, err
}

c = &Commit{}
// Copy any newly minted keys into the returned keys.
for i, p := range t.pending {
if i >= len(resp.MutationResults) || resp.MutationResults[i].Key == nil {
Expand Down

0 comments on commit fcf13b0

Please sign in to comment.