-
Notifications
You must be signed in to change notification settings - Fork 773
Conversation
4ddc723
to
8a786a1
Compare
Codecov Report
@@ Coverage Diff @@
## master #1213 +/- ##
==========================================
- Coverage 48.51% 48.45% -0.07%
==========================================
Files 121 121
Lines 7682 7746 +64
==========================================
+ Hits 3727 3753 +26
- Misses 3649 3682 +33
- Partials 306 311 +5
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should not delete 5 bytes(piece head and tail) when dfget
download a piece and get the data content by piece.RawData()
in cdn source pattern
.
68e87db
to
9a3ced9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function dfget/core/uploader/peer_server#amendRange
should not compute the piece meta size to support cdn-source
pattern.
supernode/util/range_util.go
Outdated
if maxLength < 0 { | ||
return pieceRange | ||
} | ||
indexs := strings.Split(pieceRange, separator) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/indexs/indexes
Signed-off-by: Starnop <[email protected]>
DONE. PTAL again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
This pull request doesn't support the task which downloads a part of source file. I will fix it later.
) Signed-off-by: Gaius <[email protected]>
Signed-off-by: Starnop [email protected]
Ⅰ. Describe what this PR did
As present, supernode will trigger CDN module to download the file from the source if not exist. However, that will cost some time. It's now allowed when someone wants to use the ability of P2P distribution without caching.
Restrictions
ContentLength
.Ⅱ. Does this pull request fix one issue?
NONE.
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
NONE.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews