Hacker News new | past | comments | ask | show | jobs | submit login

Objects have three fields for this: Version, Generation, and Metageneration. There's also a checksum. You can be sure that you were the writer / winner by checking these.



You can also send a x-goog-if-generation-match[0] header that instructs GCS to reject writes that would replace the wrong generation (sort of like a version) of a file. Some utilities use this for locking.

0: https://cloud.google.com/storage/docs/xml-api/reference-head...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: