HomeSoftware Heritage

swh.indexer.rehash: Read objstorage's raw content only when needed

Description

swh.indexer.rehash: Read objstorage's raw content only when needed

If there are no hashes to recompute, do not read the content from
objstorage.

This optimization will only be useful for the case of the parameter
recompute_checksum being false (which is the case in production for
now)

Related T712

Details

Provenance
ardumontAuthored on Apr 28 2017, 8:52 AM
ardumontPushed on Apr 28 2017, 9:54 AM
Parents
rDCIDXb208956f2b54: swh.indexer.rehash: Align configuration file to be under indexer
Branches
Unknown
Tags
Unknown