[ZODB-Dev] Savepoints are invalidated once they are used

Tim Peters tim at zope.com
Mon Jul 11 15:07:14 EDT 2005


[Tim Peters]
> Something subtler than I've been able to figure out yet is going wrong,
> so I made a tim-savepoint branch.  All the tests pass, but ...

Brrrrr.  The pickle cache invalidate method (which is coded in C, so isn't
visible from pdb) clears the dictionary passed to it, and when using a
savepoint more than once that can end up clearing the index of the TmpStore
holding the savepoint'ed data.  Then the TmpStore no longer believes it
holds any objects, so after that point acts as if no savepoints had ever
made.

The good news is that, while it was hard to find, it's a one-line repair.



More information about the ZODB-Dev mailing list