Begin figure description. The figure shows
a time line of dual logging during two-phase commit. The following
events occur in sequence:
- When Db2® forces the end of Phase 1, Log 1 begins I/O, and the application starts waiting for logging.
- When Log 1 completes I/O, Log 2 begins I/O, and the application continues to wait for logging.
- When Log 2 completes I/O, the application stops waiting for logging.
- When Db2 forces the beginning of Phase 2, Log 1 begins I/O, and the application starts waiting for logging.
- When Log 1 completes I/O, Log 2 begins I/O, and the application continues to wait for logging.
- When Log 2 completes I/O, the commit occurs, and the application stops waiting for logging.