HomeSoftware Heritage

Use the db_transaction decorator on all _add() methods.

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 Apr 9 2019, 6:14 PM
Differential Revision
D1381: Use the db_transaction decorator on all _add() methods.
Parents
rDSTOdab5bf860df4: Rewrite skipped_content_missing to not use a temporary table.
Branches
Unknown
Tags
Unknown
References
tag: v0.0.138
Build Status
Buildable 5290
Build 7169: test-and-build