Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hints: send_one_hint: extend the scope of file_send_gate holder
The problem was that the holder in with_gate call was released too early. This happened before the possible call to on_hint_send_failure in then_wrapped. As a result, the effects of on_hint_send_failure (segment_replay_failed flag) were not visible in send_one_file after ctx_ptr->file_send_gate.close(), so we could decide that the segment was sent in full and delete it even if sending of some hints led to errors. Fixes #15110
- Loading branch information