[Zope] recover from POSKeyError after corruption by pack()ing bug

Toby Dickenson tdickenson at geminidataloggers.com
Wed Jan 28 05:21:55 EST 2004


On Tuesday 27 January 2004 19:30, Dieter Maurer wrote:

>   The idea to recover your data would be to
>   emulate packing by processing your "Data.fs.old"
>   in the packing phase 

That half is easy - its a file copy

> and all new transaction records
>   in the copying phase.

I think you can do that with copyTransactionFrom, but you would need to 
implement some filter for the storage iterator to prevent it copying *all* 
transactions. You just need the new ones.

>   This will require some tweaking as in your case,

Indeed

-- 
Toby Dickenson




More information about the Zope mailing list