Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #615 from Starnop/piece-state-super
Browse files Browse the repository at this point in the history
bugfix: do not add the superPID to pieceState
  • Loading branch information
lowzj authored Jun 18, 2019
2 parents 366e801 + 1fbf9e1 commit 1070562
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions supernode/daemon/mgr/progress/progress_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ func (pm *Manager) updatePieceProgress(taskID, srcPID string, pieceNum int) erro
}
}

// don't add the superPID to pieceState which maintains the information
// about which peers the piece currently exists on.
if pm.cfg.IsSuperPID(srcPID) {
return nil
}

return pstate.add(srcPID)
}

Expand Down

0 comments on commit 1070562

Please sign in to comment.