[ZODB-Dev] ZODB: invalidations out of order

Jim Fulton jim at zope.com
Tue Sep 21 11:20:15 EDT 2010


On Tue, Sep 21, 2010 at 11:16 AM, Hanno Schlichting <hanno at hannosch.eu> wrote:
> On Tue, Sep 21, 2010 at 4:30 PM, Jim Fulton <jim at zope.com> wrote:
>> On Tue, Sep 21, 2010 at 10:00 AM, Hanno Schlichting <hanno at hannosch.eu> wrote:
>>> Note that the BTrees 32bit bug fix (OverflowError to TypeError) also
>>> needs some adjustments in Zope2 (IIRC in the DateIndex code) and some
>>> add-ons (like CMFEditions). So it's not straightforward to use this in
>>> older Plone versions.
>>
>> AFAIK, this fix doesn't convert overflow errors to type errors. It
>> simply raises
>> type errors in situations where data were simply stored incorrectly before.
>> I'm surprised that this would cause problems.
>
> It was changes like this one
> http://svn.zope.org/Zope/trunk/src/Products/PluginIndexes/DateIndex/DateIndex.py?rev=115442&r1=115279&r2=115442

I don't understand how the BTree changes would run afoul of this.
This code should prevent the BTree from overflowing in the first place, no?

Jim

-- 
Jim Fulton


More information about the ZODB-Dev mailing list