[ZODB-Dev] Re: [Zodb-checkins] SVN: ZODB/branches/3.4/src/ Added
savepoints!
Florent Guillaume
fg at nuxeo.com
Mon Apr 25 09:12:21 EDT 2005
> +Transactions
> +------------
> +
> +Transactions now support savepoints. Savepoints allow changes to be
> +periodically be checkpointed within a transaction. You can then
> +rollback to a previously created savepoint. See
> +transaction/savepoint.txt.
Awesome. That's really nice to have, thanks.
A detail I saw:
> +class IDataManager(zope.interface.Interface):
[...]
> + def tpc_begin(transaction):
> + """Begin commit of a transaction, starting the two-phase commit.
> +
> + transaction is the ITransaction instance associated with the
> + transaction being committed.
> +
> + subtransaction is a Boolean flag indicating whether the
> + two-phase commit is being invoked for a subtransaction.
> +
> + Important note: Subtransactions are modelled in the sense that
> + when you commit a subtransaction, subsequent commits should be
> + for subtransactions as well. That is, there must be a
> + commit_sub() call between a tpc_begin() call with the
> + subtransaction flag set to true and a tpc_begin() with the
> + flag set to false.
> +
> + """
But there's not "subtransaction" flag for this method anymore.
Florent
--
Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D
+33 1 40 33 71 59 http://nuxeo.com fg at nuxeo.com
More information about the ZODB-Dev
mailing list