HomeSoftware Heritage

Use the db_transaction decorator on all _add() methods.

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

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.
Build Status
Buildable 5290
Build 7169: test-and-build

Commit No Longer Exists

This commit no longer exists in the repository.