Skip to content

Commit

Permalink
Merge pull request #2601 from michael-berlin/export_buffer_nil_err
Browse files Browse the repository at this point in the history
Do not return OK error code for buffer errors.
  • Loading branch information
michael-berlin authored Feb 27, 2017
2 parents 04326af + 5bd6a7f commit 3b4f863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/vtgate/gateway/discoverygateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (dg *discoveryGateway) withRetry(ctx context.Context, target *querypb.Targe
if bufferErr != nil {
// Buffering failed e.g. buffer is already full. Do not retry.
err = vterrors.Errorf(
vterrors.Code(err),
vterrors.Code(bufferErr),
"failed to automatically buffer and retry failed request during failover: %v original err (type=%T): %v",
bufferErr, err, err)
break
Expand Down

0 comments on commit 3b4f863

Please sign in to comment.