Enum CheckpointReason
What triggered a checkpoint cycle. Carried as the reason byte on CheckpointCycle spans.
public enum CheckpointReason : byte
Fields
DirtyPagePressure = 3The page cache reached
ResourceOptions.CheckpointDirtyPageThresholdPercentwriteback debt, so the cycle ran early rather than waiting out the timer (#830).Distinct from Forced on purpose.
Forcedcovers the back-pressure escape hatch, which fires only once the cache is already 100 % dirty and an allocation is blocked; this fires at a threshold, before anything is stalled. Reading them as one number hides whether the trigger is doing its job or the engine is repeatedly falling off the cliff it exists to prevent.Forced = 1Explicit
DatabaseEngine.ForceCheckpointcall (page cache backpressure or user-initiated).Periodic = 0Periodic timer wake (CheckpointIntervalMs elapsed).
Shutdown = 2Shutdown — final checkpoint before process exit.