The 3 types of logging techniques
How is a log file maintained ?
How is a log file maintained ?
Because the buffer is
notyet full,
the buffer is
not written to disk...
How is a log file maintained ?
Log writing rules (protocol)
The log writing rules ensures that
the log records stored on
disk can be use to
recover a
transaction
In order to ensure
recoverability,
we may need to
force write a
(non-full) log buffer to
disk !
The log flush operation
The
log flush operation is used to
ensure that
the necessary log records will
survive a
power failure
(which will cause data stored in memory
to be lossed)
Log writing with log flush
Log writing with log flush
Log writing with log flush
❮
❯