Browse Source

DeleteSnapshots

The conditional delete in handleExistingBlob was missing DeleteSnapshots, which would cause the delete operation to fail on Azure storage accounts that have blob snapshots enabled.
pull/7401/head
chrislu 1 month ago
parent
commit
04a9884773
  1. 1
      weed/replication/sink/azuresink/azure_sink.go

1
weed/replication/sink/azuresink/azure_sink.go

@ -210,6 +210,7 @@ func (g *AzureSink) handleExistingBlob(appendBlobClient *appendblob.Client, key
}
deleteOpts := &blob.DeleteOptions{
DeleteSnapshots: to.Ptr(blob.DeleteSnapshotsOptionTypeInclude),
AccessConditions: &blob.AccessConditions{
ModifiedAccessConditions: &blob.ModifiedAccessConditions{
IfMatch: props.ETag,

Loading…
Cancel
Save