Skip to content

Commit

Permalink
Export Successfully Updated bytes (#1884)
Browse files Browse the repository at this point in the history
  • Loading branch information
nakulkar-msft authored Oct 10, 2022
1 parent 1aa28fe commit bea738d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ste/mgr-JobPartTransferMgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ type IJobPartTransferMgr interface {
GetS2SSourceBlobTokenCredential() azblob.TokenCredential
PropertiesToTransfer() common.SetPropertiesFlags
ResetSourceSize() // sets source size to 0 (made to be used by setProperties command to make number of bytes transferred = 0)
SuccessfulBytesTransferred() int64
}

type TransferInfo struct {
Expand Down Expand Up @@ -973,3 +974,7 @@ func (jptm *jobPartTransferMgr) ShouldInferContentType() bool {
fromTo := jptm.FromTo()
return fromTo.From() == common.ELocation.Local()
}

func (jptm *jobPartTransferMgr) SuccessfulBytesTransferred() int64 {
return atomic.LoadInt64(&jptm.atomicSuccessfulBytes)
}

0 comments on commit bea738d

Please sign in to comment.