Skip to main content

StorageStore

One content store: what is on disk, and what the database says should be.

The two halves are deliberately separate numbers rather than one reconciled figure. They disagree in two directions and each direction means something different — a file nothing claims is what a crash between writing bytes and writing a row leaves behind, and a row whose file is gone is what an operator emptying a directory leaves. Reporting one number would hide both.

Attributes (11)
AttributeTypeRequiredDescription
idStorageStoreIdYesread-only
labelstringYesWhat to call it on a page. read-only
pathstringYesWhere it is, so du and this can be compared. read-only
filesnumberYesFiles actually there. read-only
bytesnumberYesWhat they weigh. read-only
rowsnumberNoRows pointing at a file. Absent when no table backs this store. read-only
accountedBytesnumberNoWhat those rows say those files weigh. Absent where the table does not record a size. read-only
capBytesnumberNoThe limit an operator set, where the store has one. Absent means no limit. read-only
orphanFilesnumberYesFiles no row claims. Reported and never cleaned up automatically. read-only
orphanBytesnumberYesread-only
rowsWithNoFilenumberYesClaims whose file is not there. The station re-fetches or re-renders these. read-only