Skip to content

Commit

Permalink
fix(bigtable): Retry correct mutations (#11388)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhshkh authored Jan 8, 2025
1 parent d3f81aa commit ca2c4e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bigtable/bigtable.go
Original file line number Diff line number Diff line change
Expand Up @@ -1360,12 +1360,12 @@ func (t *Table) doApplyBulk(ctx context.Context, entryErrs []*entryErr, headerMD
return err
}

for i, entry := range res.Entries {
for _, entry := range res.Entries {
s := entry.Status
if s.Code == int32(codes.OK) {
entryErrs[i].Err = nil
entryErrs[entry.Index].Err = nil
} else {
entryErrs[i].Err = status.Errorf(codes.Code(s.Code), s.Message)
entryErrs[entry.Index].Err = status.Errorf(codes.Code(s.Code), s.Message)
}
}
after(res)
Expand Down

0 comments on commit ca2c4e3

Please sign in to comment.