Skip to content

Commit

Permalink
Transfer - Phase 3 progress add transferred files
Browse files Browse the repository at this point in the history
  • Loading branch information
yahavi committed Dec 5, 2023
1 parent 4b2b4a4 commit f599403
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions artifactory/commands/transferfiles/state/statemanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ func (ts *TransferStateManager) IncTotalSizeAndFilesPhase2(filesNumber, totalSiz
// Set relevant information of files and storage we need to transfer in phase3
func (ts *TransferStateManager) SetTotalSizeAndFilesPhase3(filesNumber, totalSize int64) error {
return ts.TransferState.Action(func(state *TransferState) error {
state.CurrentRepo.Phase3Info.TransferredUnits = 0
state.CurrentRepo.Phase3Info.TransferredSizeBytes = 0
state.CurrentRepo.Phase3Info.TotalSizeBytes = totalSize
state.CurrentRepo.Phase3Info.TotalUnits = filesNumber
return nil
Expand Down

0 comments on commit f599403

Please sign in to comment.