[Zope-CVS] CVS: Products/ZCTextIndex - Index.py:1.1.2.24

Jeremy Hylton jeremy@zope.com
Fri, 3 May 2002 15:04:13 -0400


Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv18533

Modified Files:
      Tag: TextIndexDS9-branch
	Index.py 
Log Message:
Convert == to >=.

>= is the proper invariant.  == was used because it is assumed that
the map grows one element at a time.


=== Products/ZCTextIndex/Index.py 1.1.2.23 => 1.1.2.24 ===
         except KeyError:
             map = {}
-        if len(map) == self.DICT_CUTOFF:
+        if len(map) >= self.DICT_CUTOFF:
             map = IIBTree(map)
         map[docid] = f
         self._wordinfo[wid] = map