[ZODB-Dev] undo and zodb

Guido van Rossum guido@python.org
Tue, 03 Sep 2002 11:53:05 -0400


> An application bug like:
> 
>    ob = container[oldid]
>    del container[oldid]
>    get_transaction().commit()
>    container[newid] = ob
>    get_transaction().commit()
> 
> Can cause lossage with FileStorage if it is sufficiently unlucky. ;)

Note that this can also cause lossage if the app gets killed (e.g. by
hardware failure) before the second commit.  So I'd say this app is
already taking an unacceptable risk.  Not sure if it's worth worrying
about pack in particular.

--Guido van Rossum (home page: http://www.python.org/~guido/)