Skip to content

Commit f4d640f

Browse files
committed
Fix: Page range start and end ranges are now int64 in the local version of the SDK.
1 parent 0a0ca98 commit f4d640f

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

blobporter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"github.com/Azure/blobporter/util"
1616
)
1717

18-
const programVersion = "0.6.06"
18+
const programVersion = "0.6.07"
1919

2020
var argsUtil paramParserValidator
2121

targets/azurepage.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ func (t *AzurePageTarget) ProcessWrittenPart(result *pipeline.WorkerResult, list
8888
//Performs a PUT page operation with the data contained in the part.
8989
//This assumes the part.BytesToRead is a multiple of the PageSize
9090
func (t *AzurePageTarget) WritePart(part *pipeline.Part) (duration time.Duration, startTime time.Time, numOfRetries int, err error) {
91-
start := int32(part.Offset)
92-
end := int32(part.Offset + uint64(part.BytesToRead) - 1)
91+
92+
start := int64(part.Offset)
93+
end := int64(part.Offset + uint64(part.BytesToRead) - 1)
9394
defer util.PrintfIfDebug("WritePart -> start:%v end:%v name:%v err:%v", start, end, part.TargetAlias, err)
9495

9596
err = t.azUtil.PutPages(part.TargetAlias, start, end, bytes.NewReader(part.Data))

util/azutil.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ func (p *AzUtil) CreatePageBlob(blobName string, size uint64) error {
223223
}
224224

225225
//PutPages TODO
226-
func (p *AzUtil) PutPages(blobName string, start int32, end int32, body io.ReadSeeker) error {
226+
func (p *AzUtil) PutPages(blobName string, start int64, end int64, body io.ReadSeeker) error {
227227
pburl := p.containerURL.NewPageBlobURL(blobName)
228228
pageRange := azblob.PageRange{
229229
Start: start,

vendor/github.com/Azure/azure-storage-blob-go/2016-05-31/azblob/zz_generated_models.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)