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:
object
Reads a chunk of a swh-storage database, recomputes checksums, and reports errors in a separate database.
- property config: ConfigEntry#
- property datastore: Datastore#
Returns a
Datastore
instance representing the swh-storage instance being checked.
- run() None [source]#
Runs on all objects of
object_type
in a partition betweenstart_partition_id
(inclusive) andend_partition_id
(exclusive)