Important property imposed by the
UNDO/REDO log write rule
Important property of the
UNDO/REDO log for
incomplete
(= uncommited) transactions
I.e.:
the
UNDO/REDO log has the
property of an
UNDO (only) log
(pretty obvious)
Important property of the
UNDO/REDO log for
committed transactions
Prelude -
some facts about the
(UNDO/REDO) log file:
Consequence:
Important property of the
UNDO/REDO log for
committed transactions
Consequence:
Example:
Important property of the
UNDO/REDO log for
committed transactions
Consequence:
Summary of finding of properties of the UNDO/REDO log
I.e.:
the UNDO/REDO log can
provide atomic execution of
incomplete transactions
by
UNDO-ing all its
updates
I.e.:
the UNDO/REDO log can
provide atomic execution of
committed transactions
by
REDO-ing all its
updates
The recovery procedure of
the UNDO/REDO log
The general algorithm
to recover from a
system failure using
logging is:
Comparing the recovery procedure of
UNDO/REDO logging with UNDO (only) logging
I.e.:
we sacrificed
some flexibility and
gain
some efficiency
(= omit the REDO step !)
by incorporating updated made by
committed transactions !!!
Comparing the recovery procedure of
UNDO/REDO logging with REDO (only) logging
I.e.:
we sacrificed
some flexibility and
gain
some efficiency
(= omit the UNDO step !)
by disallowing disk write operations made by
uncommitted transactions !!!
❮
❯