HomeSoftware Heritage

Fix race condition in multiplexer_objstorage add() return value

Description

Fix race condition in multiplexer_objstorage add() return value

If an objstorage is read-only, the add() method will return None. The
multiplexer should return one of the non-None values if it finds one, instead of
the (inconsistent) first value returned by any of the threads.

Details

Provenance
olasdAuthored on Jun 5 2020, 6:40 PM
olasdPushed on Jun 5 2020, 6:47 PM
Differential Revision
D3237: Fix race condition in multiplexer_objstorage add() return value
Parents
rDOBJS15358e9c2ac5: Prevent collections.abc related deprecation warning
Branches
Unknown
Tags
Unknown
Build Status
Buildable 12687
Build 19286: test-and-buildJenkins console · Jenkins