2. Second Phase: After the coordinator reaches a vote,
it has to relay that vote to the subordinates. If the
decision is COMMIT, then the coordinator moves into
the committing state and sends a COMMIT message
to all the subordinates informing them of the
COMMIT. When the subordinates receive the
COMMIT message, they, in turn, move to the
committing state and send an acknowledge (ACK)
message to the coordinator. When the coordinator
receives the ACK messages, it ends the transaction.
If, on the other hand, the coordinator reaches an
ABORT decision, it sends an ABORT message to all
the subordinates. Here, the coordinator doesn’t need to
send an ABORT message to the subordinate(s) that
gave a NO VOTE.