cloud/storage/gcs: fix bug in Put retry logic

The Put method will retry on transient errors, but when it retried it
would not re-create the reader that supplies the object data.
This means that if a request is retried then the resulting object would
be empty. Users may have lost data as a result of this bug. :-(

Fixes #415

Change-Id: I106a7a3786a22a6eebfcc314576e4b1771525cb5
Reviewed-on: https://upspin-review.googlesource.com/10642
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Eduardo Pinheiro <epinheiro@gmail.com>
1 file changed
tree: f0aff8820fc9bc6e44e54378bf12111446c84a90
  1. cloud/
  2. cmd/
  3. .gitignore
  4. .travis.yml
  5. AUTHORS
  6. CONDUCT.md
  7. CONTRIBUTING.md
  8. CONTRIBUTORS
  9. LICENSE
  10. PATENTS
  11. README.md
README.md

Upspin gcp repository

This repository contains support for running Upspin against Google Cloud Storage and/or Google Container Engine.

See the Setting up upspinserver document for information about running an Upspin service that stores its data in Google Cloud Storage.

See the Deploying Upspin servers to Google Cloud Platform document for information about running an Upspin cluster on Google Container Engine.

See the master repository for more information about the Upspin project.