[Checkins] SVN: Products.ZCatalog/trunk/src/Products/ZCatalog/Catalog.py Remove a useless condition, we restrict limit to be at max rlen at the top of the function
Hano Schlichting
cvs-admin at zope.org
Sun Apr 8 13:37:29 UTC 2012
Log message for revision 125101:
Remove a useless condition, we restrict limit to be at max rlen at the top of the function
Changed:
U Products.ZCatalog/trunk/src/Products/ZCatalog/Catalog.py
-=-
Modified: Products.ZCatalog/trunk/src/Products/ZCatalog/Catalog.py
===================================================================
--- Products.ZCatalog/trunk/src/Products/ZCatalog/Catalog.py 2012-04-08 12:05:28 UTC (rev 125100)
+++ Products.ZCatalog/trunk/src/Products/ZCatalog/Catalog.py 2012-04-08 13:37:26 UTC (rev 125101)
@@ -782,7 +782,7 @@
sequence, slen = self._limit_sequence(result, length, b_start,
b_size, switched_reverse)
result = LazyCat(LazyValues(sequence), slen, actual_result_count)
- elif limit is None or (limit * 4 > rlen):
+ elif limit is None:
# Iterate over the result set getting sort keys from the index
if sort_index_length == 1:
for did in rs:
More information about the checkins
mailing list