HomePhabricator

[avalanche] Hold the peer manager lock during the peer cleanup

Description

[avalanche] Hold the peer manager lock during the peer cleanup

Summary: The cleanup task is accessing and modifying the peer structure, so it needs to hold the cs_peerManager lock.

Test Plan:
With Clang and Debug:

ninja all check-all

With D11735:

./contrib/teamcity/build-configurations.py build-tsan

Reviewers: #bitcoin_abc, sdulfari

Reviewed By: #bitcoin_abc, sdulfari

Differential Revision: https://reviews.bitcoinabc.org/D11736

Details

Provenance
FabienAuthored on Jul 11 2022, 14:05
FabienPushed on Jul 11 2022, 18:51
Reviewer
Restricted Project
Differential Revision
D11736: [avalanche] Hold the peer manager lock during the peer cleanup
Parents
rABCf02d22dc206a: [avalanche] Fix a lock order inversion
Branches
Unknown
Tags
Unknown