diff options
author | Richard van der Hoff <richard@matrix.org> | 2017-09-20 01:32:42 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2017-09-20 01:32:42 +0100 |
commit | abdefb8a01bf67b3055e9fbe52bb11a02ffd8d9a (patch) | |
tree | 5da0013e4c6d425cbf45980f76c13540ca9d89f2 /jenkins-postgres.sh | |
parent | Add some comments to _start_key_lookups (diff) | |
download | synapse-abdefb8a01bf67b3055e9fbe52bb11a02ffd8d9a.tar.xz |
Fix potential race in _start_key_lookups
If the verify_request.deferred has already completed, then `remove_deferreds` will be called immediately. It therefore might resolve the server_to_deferred deferred while there are still other requests for that server in flight. To avoid that, we should build the complete list of requests, and *then* add the callbacks.
Diffstat (limited to 'jenkins-postgres.sh')
0 files changed, 0 insertions, 0 deletions