Commit c77f6ec3 authored by Krzysztof Leśniak's avatar Krzysztof Leśniak Committed by Bartek Wrona
Browse files

Fix possible deadlock on sql error on replay

When an exception was thrown while doing replay, there was a deadlock because one of data processors was waiting on a condition variable that was already destroyed by queries_commit_data_processor.
To fix this add a call to cancel in ~data_processor, which will make
sure that join is called. To make sure join is not called twice, a check
is added to join function, which makes it return early if join was
already called earlier.
parent 4fb88c49
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment