Commits a distributed transaction (managed by this).
The commit is composed of two phases:
If the PREPARE phase fails for any of the connection registered with this, then the distributed commit fails and FALSE is returned. During the COMMIT phase, some commit may actually fail but the transaction can still be completed because the PREPARE phase succeeded (through the recover method).
this |
a XaTransaction object |
cnc_to_recover |
a place to store the list of connections for which the commit phase failed, or |
TRUE if no error occurred (there may be some connections to recover, though) |