swh.scrubber.storage_checker module#
Reads all objects in a swh-storage instance and recomputes their checksums.
- class swh.scrubber.storage_checker.StorageChecker(db: ScrubberDb, config_id: int, storage: StorageInterface, limit: int = 0)[source]#
Bases:
BasePartitionChecker
Reads a chunk of a swh-storage database, recomputes checksums, and reports errors in a separate database.
- check_partition(object_type: ObjectType, partition_id: int) None [source]#
Abstract method that derived classes must implement to check objects in partition.