- If the
coordination received
"Commit T" from
all participants, then:
- The coordinator
writes a
"Commit T" (decision record)
to its local log file
- The coordinator
sends a
"Commit T" (final decision)
message
to all participants
- When a participant receives the
"Commit T" (final decision)
message, the participant
writes a "Commit T" log record
into its local log and
make all updates
of the transaction
permanent at its site.
|
- Otherwise (the
coordination received
at least one
"Don't commit T" message), then:
- The coordinator
writes an
"Abort T" (decision record)
to its local log file
- The coordinator
sends an
"Abort T" (final decision)
message to all participants
- When a participant receives the
"Abort T" (final decision)
message, the participant
writes a "Abort T" log record
into its local log and
make all updates
of the transaction
void (e.g., undo) at its site.
|
|