Class StorageIntegrityReport
Whole-engine integrity audit produced by RunStorageIntegrityCheck(). IsHealthy is the only assertion callers should care about — every individual issue is reported with enough context to localise the cause without re-running the audit.
public sealed class StorageIntegrityReport
- Inheritance
-
StorageIntegrityReport
- Inherited Members
Remarks
The audit reads the occupancy bitmap, the segment registry, and every page of every chunk segment through the page cache, so it costs a walk of the database and may load pages. It is safe on a live engine, not on a hot path.
Constructors
StorageIntegrityReport()
public StorageIntegrityReport()
Properties
ChunkSegmentsUnsettled
Chunk segments whose allocated count kept moving through three counts of their bits, so nothing could be said of them.
public int ChunkSegmentsUnsettled { get; init; }
Property Value
IsHealthy
true when Issues is empty.
public bool IsHealthy { get; }
Property Value
Issues
Every issue found in this audit pass, in discovery order. Empty when the engine is healthy.
public IReadOnlyList<StorageIntegrityIssue> Issues { get; init; }
Property Value
OccupancyBitsSet
Total set bits in the occupancy bitmap when the audit ran. Useful for sizing diagnostics.
public int OccupancyBitsSet { get; init; }
Property Value
OrphanPageCount
Count of file pages whose occupancy bit is set but no segment claims them. 0 in a healthy engine.
public int OrphanPageCount { get; init; }
Property Value
PhantomPageCount
Count of file pages a segment claims to own but whose occupancy bit is clear. 0 in a healthy engine.
public int PhantomPageCount { get; init; }
Property Value
SegmentClaimedPages
Sum of every segment's Pages.Length over the registered-segments registry.
public int SegmentClaimedPages { get; init; }
Property Value
VisibilitySummaryClustersChecked
Number of clusters whose MVCC visibility summary was recomputed from the EntityMap and compared. Counts only clusters at least one entity record
names, so it is 0 on an engine with no cluster entities — and a non-zero value is what distinguishes "the audit found nothing" from "the audit
looked at nothing".
public int VisibilitySummaryClustersChecked { get; init; }