Checkpointing (cont)
Problem: many concurrent/overlapping transactions.
How to know that all have finished?
- periodically, write log record
<CHKPT (T1,..,Tk)>
(contains references to all active transactions ⇒ active tx table)
- continue normal processing (e.g. new tx's can start)
- when all of
T1,..,Tk have completed,
write log record <ENDCHKPT> and flush log
Note: tx manager maintains chkpt and active tx information
|