Skip to content

Commit 0a0ca98

Browse files
committed
-doc updates
1 parent 016c9a1 commit 0a0ca98

File tree

9 files changed

+11
-12
lines changed

9 files changed

+11
-12
lines changed

args.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ func (p *paramParserValidator) pvgDupCheck() error {
299299
var err error
300300
p.params.dedupeLevel, err = transfer.ParseDupeCheckLevel(p.args.dedupeLevelOptStr)
301301
if err != nil {
302-
fmt.Errorf("Duplicate detection level is invalid. Found '%s', must be one of %s. Error:%v", p.args.dedupeLevelOptStr, transfer.DupeCheckLevelStr, err)
302+
return fmt.Errorf("Duplicate detection level is invalid. Found '%s', must be one of %s. Error:%v", p.args.dedupeLevelOptStr, transfer.DupeCheckLevelStr, err)
303303
}
304304

305305
return nil
@@ -403,7 +403,7 @@ func (p *paramParserValidator) pvPerfSourceIsReq() error {
403403
func (p *paramParserValidator) pvSetEmptyPrefixIfNone() error {
404404

405405
if len(p.params.blobSource.prefixes) == 0 {
406-
//if empty set an empty prefix so the entire container is downlaoded..
406+
//if empty set an empty prefix so the entire container is downloaded..
407407
p.params.blobSource.prefixes = []string{""}
408408
}
409409

@@ -412,7 +412,7 @@ func (p *paramParserValidator) pvSetEmptyPrefixIfNone() error {
412412

413413
//this rule checks if the transfer type is blob to file (download). Im which case blob authorization rule also aplies since
414414
//there are two combinations of param line options that can be provided. One, similar to upload, where the source is main
415-
// storage account that is the target in all other cases. And the second with the URI provided, as when blob to blob transfers occurr.
415+
// storage account that is the target in all other cases. And the second with the URI provided, as when blob to blob transfers occur.
416416
func (p *paramParserValidator) pvSourceInfoForBlobIsReq() error {
417417

418418
//if the scenarios is download then check if download is via short-mode

internal/handleman.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import (
88
)
99

1010
//There're two components here: poolHandle and the handle factory.
11-
//A pool is an asynchronous request/respone worker that runs on a single go-routine and keeps file handles for each file.
11+
//A pool is an asynchronous request/response worker that runs on a single go-routine and keeps file handles for each file.
1212
//The number of file handles is constraint by the max number of handlers in cache (maxFileHandlesInCache) and the max number of handles per file (numOfHandlesPerFile).
1313
//When the max number handles is reached file handles will be closed until space is available. The handle factory opens the file handles and initializes the
1414
//target file in case the folder structure and file need to be created. Since the factory tracks if a file has been initailized
15-
//, i.e. created or truncated at the begining of the transfer, only one instance of the factory is created.
15+
//, i.e. created or truncated at the beginning of the transfer, only one instance of the factory is created.
1616

1717
const maxFileHandlesInCache int = 600
1818

pipeline/pipeline.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func ConstructPartsPartition(numberOfPartitions int, size int64, blockSize int64
183183
partition.Parts = parts
184184
partition.NumOfParts = numOfPartsInPartition
185185
Partitions[p] = partition
186-
bytesLeft = bytesLeft - int64(partitionSize)
186+
bytesLeft = bytesLeft - int64(partitionSize)
187187
}
188188

189189
return Partitions

sources/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ func (f *HTTPSource) ExecuteReader(partitionsQ chan pipeline.PartsPartition, par
194194
req.Header.Set("User-Agent", userAgent)
195195

196196
//set the close header only when the block is larger than the blob
197-
//to minimize the number of open when transfering small files.
197+
//to minimize the number of open when transferring small files.
198198
if p.BytesToRead < p.BlockSize {
199199
req.Close = true
200200
}

targets/azureblock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (t *AzureBlockTarget) CommitList(listInfo *pipeline.TargetCommittedListInfo
5050

5151
//Only commit if the number blocks is greater than one.
5252
if numberOfBlocks == 1 {
53-
msg = fmt.Sprintf("\rFile:%v, The blob is already comitted.",
53+
msg = fmt.Sprintf("\rFile:%v, The blob is already committed.",
5454
targetName)
5555
err = nil
5656
return

targets/azurepage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (t *AzurePageTarget) PreProcessSourceInfo(source *pipeline.SourceInfo, bloc
6161
}
6262

6363
if blockSize > maxPageSize || blockSize < PageSize {
64-
return fmt.Errorf(" invalid block size for page blob: %v. The value must be greater than %v and less than %v", PageSize, maxPageSize)
64+
return fmt.Errorf(" invalid block size for page blob: %v. The value must be greater than %v and less than %v", source.SourceName, PageSize, maxPageSize)
6565
}
6666

6767
err = t.azUtil.CreatePageBlob(source.TargetAlias, size)

transfer/transfer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const (
105105
NA = "na"
106106
)
107107

108-
//ParseTransferSegment
108+
//ParseTransferSegment TODO
109109
func ParseTransferSegment(def Definition) (TransferSegment, TransferSegment) {
110110
//defstr := string(def)
111111

util/azutil.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ func NewAzUtil(accountName string, accountKey string, container string, baseBlob
3434
RetryDelay: 200 * time.Millisecond,
3535
MaxRetryDelay: 5 * time.Minute}})
3636

37-
38-
3937
baseURL, err := parseBaseURL(accountName, baseBlobURL)
4038
if err != nil {
4139
return nil, err

util/util.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ func isValidContainerName(name string) bool {
245245
}
246246

247247
var storageHTTPClient *http.Client
248+
248249
//HTTPClientTimeout HTTP timeout of the HTTP client used by the storage client.
249250
var HTTPClientTimeout = 60
250251

0 commit comments

Comments
 (0)