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