commit | 9a97b18d2f13cda8fca46df0c0759ad1ddbcd910 | [log] [tgz] |
---|---|---|
author | Robin Thellend <rthellend@google.com> | Tue Jul 28 10:56:14 2015 -0700 |
committer | Robin Thellend <rthellend@google.com> | Tue Jul 28 10:56:15 2015 -0700 |
tree | 915024282f9668a97b8345c3b23401afb7788c3f | |
parent | bd4f3f8b53221ba7c4e84fbceb032c18550c1669 [diff] |
services/device/device: Retry upload when already exists If we try to upload the same binary twice within the same second, the second attempt will use the same object name and then fail with an "already exists" error. There are many ways to fix this problem: - We could ignore this error and assume that it is indeed the same binary and we don't need to upload it again. - We could change the timestamp to have finer granularity. - We could retry with a slightly different object name. This change implements the third option. Change-Id: Ib03108ffdb83387594571f33284f511a6d76ba31
This repository contains a reference implementation of the Vanadium APIs.
Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.