LogRecordSequence.RestartSequenceNumber Property

 

Gets the sequence number of the restart area closest to the end of the log.

Namespace:   System.IO.Log
Assembly:  System.IO.Log (in System.IO.Log.dll)

public SequenceNumber RestartSequenceNumber { get; }

Property Value

Type: System.IO.Log.SequenceNumber

The sequence number of the restart area closest to the end of the log.

Exception Condition
ObjectDisposedException

The property was accessed after the sequence has been disposed of.

A restart area is used to temporarily store information containing a client's last checkpoint operation. The Common Log File System (CLFS) maintains two restart areas to guarantee that at least one valid area is always available. When a recovery is necessary, the CLFS reads its restart area and all the data from the last checkpoint operation. This data initializes the transaction table, dirty pages table, and open file table so they can be used in the recovery process.

Using the SetLastRecord method, you can remove the most recently written restart area.

.NET Framework
Available since 3.0
Return to top
Show: