Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
repair: Reduce unnecessary streaming traffic
If the remote peers have the same checksum, we can only fetch from one of the peer node instead of all of them since they all have the same data anyway. No need to fetch from all of them. In addition to above optimization, if the local peer has no data, we can skip sending the data back to the remote peer. Due to the fact that all the remote peers have the same checksum and local peer has no data, so each and every remote peer has all the data. There is no need to merge the remote data with local data and send back the merged data back to remote peers. Refs: #1617
- Loading branch information
Showing
1 changed file
with
37 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters