[ZODB-Dev] HOWTO recover from Data.fs.tmp

Dieter Maurer dieter at handshake.de
Tue Oct 3 13:18:01 EDT 2006


Juan Pablo Giménez wrote at 2006-10-2 14:56 -0300:
> ...
>but... that's a bug... why zope keep writing in .tmp file if we can't
>recover nothing from there?!?!...

Temporary files usually have purposes different from recovery ;-)


The "*.tmp" file in particular is used to implement the
two phase commit protocol: in the first phase, the transaction
is committed to the "*.tmp" file; in the second phase, the
(relevant) content of the "*.tmp" file is copied to the true
storage file.

As you see from this description, the content of the "*.tmp"
file is relevant only during the commit of a single transaction.



-- 
Dieter


More information about the ZODB-Dev mailing list