Skip to content

Allow a conditional write on put - #51

Open
toots wants to merge 1 commit into
andersfugmann:mainfrom
toots:conditional-write
Open

Allow a conditional write on put#51
toots wants to merge 1 commit into
andersfugmann:mainfrom
toots:conditional-write

Conversation

@toots

@toots toots commented Aug 10, 2026

Copy link
Copy Markdown

Several writers racing for one key currently all succeed, each overwriting the last, and nothing in the API can express "only if nobody got here first" -- meta_headers cannot, since it emits x-amz-meta- user metadata rather than request headers.

A precondition of `If_none_match or `If_match etag sends the matching header on both put entry points, letting S3 evaluate it and answer 412 rather than replace the object.

Several writers racing for one key currently all succeed, each overwriting the last, and nothing in the API can express "only if nobody got here first"; meta_headers cannot, since it emits x-amz-meta- user metadata rather than request headers.

A precondition of `If_none_match or `If_match etag sends the matching header on both put entry points, letting s3 evaluate it and answer 412 rather than replace the object.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant