HomeSoftware Heritage

swh.indexer.rehash: Respect semantics regarding hashes (re)computation

Description

swh.indexer.rehash: Respect semantics regarding hashes (re)computation

For all contents:

  • 'compute_checksums' option define checksums to (re)compute
  • check the content's already defined checksums against that list
  • If some are in 'compute_checksums' and already defined for that content, recompute those only if recompute_checksums is true.
  • Compute all other checksums mentioned in 'compute_checksums' for that content
  • update the content's metadata in db

Related T692

Details

Provenance
ardumontAuthored on Mar 14 2017, 1:45 PM
ardumontPushed on Mar 21 2017, 10:50 AM
Differential Revision
D186: Recompute class to trigger an add/update hash checksums in storage
Parents
rDCIDXd3a9b21062a1: swh.indexer.rehash: Rename module to rehash + review adaptations
Branches
Unknown
Tags
Unknown