6. Working with Transactions and Handling Errors
:
Two Phase Commit
:
Example: Using Two-Phase Commit
:
read_from_file(address(session1),
Share this page
read_from_file(address(session1),
address(session2),
address(dbname1), address(dbname2),
address(high), address(low));
/* Assume that a global flag has been set to
** commit or rollback based on the information
** in the file */