HomeSoftware Heritage

Explicitely give Db connections back to the pool.

Description

Explicitely give Db connections back to the pool.

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:55 PM
vlorentzPushed on Apr 9 2019, 6:05 PM
Differential Revision
D1384: Explicitely give Db connections back to the pool.
Parents
rDCOREd54f0afbd6eb: requirements.txt: 'msgpack-python' is deprecated, use 'msgpack' instead
Branches
Unknown
Tags
Unknown
References
tag: v0.0.59
Build Status
Buildable 5286
Build 7163: test-and-build