Skip to content

Commit

Permalink
Merge pull request #89 from Azure/dev
Browse files Browse the repository at this point in the history
v0.6.07
  • Loading branch information
giventocode committed Feb 14, 2018
2 parents 84a3899 + 49d9e06 commit aad0dc9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Sources and targets are decoupled, this design enables the composition of variou
Download, extract and set permissions:

```bash
wget -O bp_linux.tar.gz https://github.com/Azure/blobporter/releases/download/v0.6.06/bp_linux.tar.gz
wget -O bp_linux.tar.gz https://github.com/Azure/blobporter/releases/download/v0.6.07/bp_linux.tar.gz
tar -xvf bp_linux.tar.gz linux_amd64/blobporter
chmod +x ~/linux_amd64/blobporter
cd ~/linux_amd64
Expand All @@ -46,7 +46,7 @@ export ACCOUNT_KEY=<STORAGE_ACCOUNT_KEY>
### Windows

Download [BlobPorter.exe](https://github.com/Azure/blobporter/releases/download/v0.6.06/bp_windows.zip)
Download [BlobPorter.exe](https://github.com/Azure/blobporter/releases/download/v0.6.07/bp_windows.zip)

Set environment variables (if using the command prompt):

Expand Down
2 changes: 1 addition & 1 deletion blobporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/Azure/blobporter/util"
)

const programVersion = "0.6.06"
const programVersion = "0.6.07"

var argsUtil paramParserValidator

Expand Down
5 changes: 3 additions & 2 deletions targets/azurepage.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ func (t *AzurePageTarget) ProcessWrittenPart(result *pipeline.WorkerResult, list
//Performs a PUT page operation with the data contained in the part.
//This assumes the part.BytesToRead is a multiple of the PageSize
func (t *AzurePageTarget) WritePart(part *pipeline.Part) (duration time.Duration, startTime time.Time, numOfRetries int, err error) {
start := int32(part.Offset)
end := int32(part.Offset + uint64(part.BytesToRead) - 1)

start := int64(part.Offset)
end := int64(part.Offset + uint64(part.BytesToRead) - 1)
defer util.PrintfIfDebug("WritePart -> start:%v end:%v name:%v err:%v", start, end, part.TargetAlias, err)

err = t.azUtil.PutPages(part.TargetAlias, start, end, bytes.NewReader(part.Data))
Expand Down
2 changes: 1 addition & 1 deletion util/azutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func (p *AzUtil) CreatePageBlob(blobName string, size uint64) error {
}

//PutPages TODO
func (p *AzUtil) PutPages(blobName string, start int32, end int32, body io.ReadSeeker) error {
func (p *AzUtil) PutPages(blobName string, start int64, end int64, body io.ReadSeeker) error {
pburl := p.containerURL.NewPageBlobURL(blobName)
pageRange := azblob.PageRange{
Start: start,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aad0dc9

Please sign in to comment.