-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update comment about r2 requiring locks
Cloudflare R2 doesn't require the use of an external lock when using conditional operation headers like so: ```rust let s3 = AmazonS3Builder::from_env() .with_url(url) .with_region("auto") .with_access_key_id(&config.s3_access_key_id) .with_secret_access_key(&config.s3_secret_access_key) .with_endpoint(&config.s3_endpoint) // Allows using S3-API without an external locking provider since Cloudflare R2 // provides atomic Put and Copy. .with_config( AmazonS3ConfigKey::CopyIfNotExists, "header: cf-copy-destination-if-none-match: *".to_string(), ) .build() ``` - https://developers.cloudflare.com/r2/api/s3/extensions/#putobject-1 - https://github.com/apache/arrow-rs/blob/c6ba0f764a9142b74c9070db269de04d2701d112/object_store/src/aws/precondition.rs#L29-L42
- Loading branch information
1 parent
7c1bc35
commit 1ddb616
Showing
1 changed file
with
32 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters