|
原帖由 hahabean 于 2009-8-10 10:51 发表 ![]()
一般LSN都是被一个transaction hold住的吧,所以,如果能确定哪个是lowtranLSN的话,应该可以找到是哪个Trans,我觉得。但是我这边做过一个简单的测试,只有两个trans,后来发现crash recovery用的lowtranLSN比我用db2pd -trans能看到的firstLSN都小
好帖!
To maintain database consistency, DB2 keeps track of two things:
MinBufLSN - LSN of the oldest dirty page in the bufferpool;
LowTranLSN - LSN of the oldest uncommitted transaction.
Crash recovery need start from MIN(MinBufLSN, LowTranLSN).
And actually the first log, whose last record's LSN is larger than MIN(MinBufLSN, LowTranLSN), is called First Active Log. |
|