Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Implement commitAppend #18

Merged
merged 2 commits into from
Apr 29, 2021
Merged

Implement commitAppend #18

merged 2 commits into from
Apr 29, 2021

Conversation

JinnyYi
Copy link
Contributor

@JinnyYi JinnyYi commented Apr 27, 2021

Implement commitAppend in ref: beyondstorage/go-storage#529.

@@ -5,7 +5,7 @@ go 1.14
require (
github.com/aliyun/aliyun-oss-go-sdk v2.1.8+incompatible
github.com/aos-dev/go-integration-test/v3 v3.0.0
github.com/aos-dev/go-storage/v3 v3.6.0
github.com/aos-dev/go-storage/v3 v3.6.1-0.20210427074731-1b3b4e86c950
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please provide append related metadata in obejct.

service.toml Show resolved Hide resolved
service.toml Show resolved Hide resolved
}
if opt.HasServerSideEncryptionKeyID {
options = append(options, oss.ServerSideEncryptionKeyID(opt.ServerSideEncryptionKeyID))
if opt.HasContentMd5 {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should pass the content_type the first time of the AppendObject call.

As we added the content_type in Object, but that value is not stored by service. If the user tries to Stat an object, he/she will found those metadata is missing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

content-type has set in create_append.

@Xuanwo Xuanwo merged commit 6b4ecb1 into master Apr 29, 2021
@Xuanwo Xuanwo deleted the appender branch April 29, 2021 02:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants