diff --git a/datastore/transaction.go b/datastore/transaction.go index 08420f26ae6..f66209a254b 100644 --- a/datastore/transaction.go +++ b/datastore/transaction.go @@ -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 {