Commit 973f8b66 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Don't request less than the min range length.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2504 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent aad60f0f
......@@ -240,7 +240,8 @@ class ReplicationHandler(EventHandler):
# Note: +1, so we can detect we reached the end when answer
# comes back.
action = CHECK_CHUNK
params = (recheck_min_boundary, min(length / 2, count + 1))
params = (recheck_min_boundary, max(min(length / 2, count + 1),
MIN_RANGE_LENGTH))
return action, params
@checkConnectionIsReplicatorConnection
......
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