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

Implement commitAppend #19

Merged
merged 4 commits into from
Apr 29, 2021
Merged

Implement commitAppend #19

merged 4 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.

service.toml Outdated

[namespace.storage.op.stat]
optional = ["encryption_key", "encryption_scope"]

[pairs.access_tier]
type = "string"

[pairs.append_total_size_maximum]
type = "int64"
description = "max append total size in append operation"
Copy link
Contributor

Choose a reason for hiding this comment

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

append_total_size_maximum is provided by service instead of user, so there should not be a pair for it.

storage.go Outdated
@@ -306,6 +310,14 @@ func (s *Storage) writeAppend(ctx context.Context, o *Object, r io.Reader, size
accessConditions.AppendPositionAccessConditions.IfAppendPositionEqual = offset
}

if opt.HasAppendTotalSizeMaximum {
if opt.AppendTotalSizeMaximum > 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

AppendTotalSizeMaximum should a const that defined in our code with azblob's documents link.

@Xuanwo Xuanwo merged commit 290f03a into master Apr 29, 2021
@Xuanwo Xuanwo deleted the appender branch April 29, 2021 02:30
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