Commit 0c7e1dd4 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Replicate the current chunk if the peer answered less than min range.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2501 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent ef153515
......@@ -227,7 +227,7 @@ class ReplicationHandler(EventHandler):
params = (next_boundary, )
else:
# We must recheck current chunk.
if length <= MIN_RANGE_LENGTH:
if count <= MIN_RANGE_LENGTH:
# We are already at minimum chunk length, replicate.
action = CHECK_REPLICATE
params = (recheck_min_boundary, )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment