[ZODB-Dev] Explicit two-phase commit

Itamar Shtull-Trauring lists@itamarst.org
Wed, 05 Sep 2001 13:45:38 +0300


Hey everyone,

How can I access ZODB's two-phase commit manually? I want to integrate ZODB 
into my system, so I need to be able to separate out the two stages of the 
two-phase commit, e.g.:

   class MyClass:

     def prepare():
       return get_transaction().prepare() # first stage of TPC

     def commit():
       return get_transaction().commit()  # second stage of TPC


Whereas now the two stages are called together from the transaction's 
commit() command.