HomePhabricator

Fix rpc-hanging deadlocks
6cc4a62c0e69Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Fix rpc-hanging deadlocks

Collapsed multiple wallet mutexes to a single cs_wallet, to avoid deadlocks with wallet methods that acquired locks in different order.
Also change master RPC call handler to acquire cs_main and cs_wallet locks before executing RPC calls; requiring each RPC call to acquire the right set of locks in the right order was too error-prone.

Details

Provenance
Gavin Andresen <gavinandresen@gmail.com>Authored on Aug 26 2011, 18:37
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGINGb0243da77c6e: Highlight mis-matching locks
Branches
Unknown
Tags
Unknown

Event Timeline

Gavin Andresen <gavinandresen@gmail.com> committed rSTAGING6cc4a62c0e69: Fix rpc-hanging deadlocks (authored by Gavin Andresen <gavinandresen@gmail.com>).Aug 31 2011, 16:55