HomeSoftware Heritage

Use the db_transaction decorator on all _add() methods.
cf99702f18fcUnpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

Use the db_transaction decorator on all _add() methods.

So they gracefully release the connection on error instead
of relying on reference-counting to call the Db's __del__
(which does not happen in Hypothesis tests) because a ref
to it is kept via the traceback object.

Details

Provenance
vlorentzAuthored on Apr 9 2019, 4:40 PM
vlorentzPushed on May 17 2019, 1:53 PM
Differential Revision
D1381: Use the db_transaction decorator on all _add() methods.
Parents
rDSTOCdab5bf860df4: Rewrite skipped_content_missing to not use a temporary table.
Branches
Unknown
Tags
Unknown