Bewerken

Share via


LogRecordSequence.RestartSequenceNumber Property

Definition

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

public:
 property System::IO::Log::SequenceNumber RestartSequenceNumber { System::IO::Log::SequenceNumber get(); };
public System.IO.Log.SequenceNumber RestartSequenceNumber { get; }
member this.RestartSequenceNumber : System.IO.Log.SequenceNumber
Public ReadOnly Property RestartSequenceNumber As SequenceNumber

Property Value

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

Implements

Exceptions

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

Remarks

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.

Applies to