[Neo-report] r2504 gregory - /trunk/neo/storage/handlers/replication.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Dec 9 18:18:15 CET 2010


Author: gregory
Date: Thu Dec  9 18:18:14 2010
New Revision: 2504

Log:
Don't request less than the min range length.

Modified:
    trunk/neo/storage/handlers/replication.py

Modified: trunk/neo/storage/handlers/replication.py
==============================================================================
--- trunk/neo/storage/handlers/replication.py [iso-8859-1] (original)
+++ trunk/neo/storage/handlers/replication.py [iso-8859-1] Thu Dec  9 18:18:14 2010
@@ -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




More information about the Neo-report mailing list