On 2/23/12 10:50 AM, "Torsten Krah" <tk...@fachschaft.imn.htwk-leipzig.de>
wrote:
>
>In theory yes it would work to do the same thing again in post-commit -
>but pre-commit already did all the work before. Would be nice if there
>would be no need to parse and analyze things twice, may take time and
>resources depending on the commit size.

This was added in r1240856:
http://svn.apache.org/viewvc?view=revision&revision=1240856

Post commit hooks will now be invoked with the pre-commit's txn name.  Do
your preparation during pre-commit, persist it in some way, keyed by the
txn name, then apply it during post-commit.

(This doesn't take care of periodically cleaning failed preparation
attempts, and nor should it.)

Regards,

        Trent.

Reply via email to