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. .gitignore
  2. .travis.yml
  3. AUTHORS
  4. CONDUCT.md
  5. CONTRIBUTING.md
  6. CONTRIBUTORS
  7. LICENSE
  8. PATENTS
  9. README.md
  10. cloud/
  11. cmd/
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.