Petr Gusev
b9178bd853
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
(cherry picked from commit 9fd3df13a2 )
2023-12-18 13:03:23 +02:00
..
2023-04-03 08:57:43 +03:00
2023-01-03 19:54:13 +02:00
2023-12-18 13:03:23 +02:00
2022-05-13 07:11:58 +02:00
2022-07-25 09:53:33 +02:00
2023-11-19 18:54:46 +02:00
2022-08-08 08:02:27 +03:00
2022-07-04 13:42:45 +03:00
2022-10-17 12:07:27 +02:00
2023-03-16 10:42:03 +02:00
2023-11-21 01:29:28 +01:00
2023-11-21 01:29:28 +01:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-10-25 09:16:50 +03:00
2022-10-25 09:16:50 +03:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-03-30 15:42:51 +03:00
2022-03-30 15:42:51 +03:00
2022-01-18 12:15:18 +01:00
2022-05-13 07:11:58 +02:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2023-03-30 17:01:24 +03:00
2022-10-10 16:20:59 +03:00
2023-01-03 19:54:13 +02:00
2022-05-13 07:11:58 +02:00
2022-06-22 20:07:58 +02:00
2022-01-18 12:15:18 +01:00
2022-08-08 08:02:27 +03:00
2022-06-22 20:16:48 +02:00
2022-06-22 20:16:48 +02:00
2022-11-28 21:58:30 +02:00
2022-05-01 08:33:55 +03:00
2022-06-22 20:16:48 +02:00
2022-06-22 20:16:48 +02:00
2022-05-13 07:11:58 +02:00
2023-11-21 01:29:28 +01:00
2023-12-15 13:55:57 +02:00
2023-11-21 01:29:28 +01:00
2023-03-16 10:42:03 +02:00
2022-10-06 18:00:09 +03:00
2022-12-05 08:14:39 +02:00
2022-09-26 11:02:54 +03:00
2022-05-16 14:14:14 +03:00
2022-05-16 14:14:14 +03:00
2022-08-14 13:12:03 +03:00
2022-08-12 06:01:44 +03:00
2022-03-25 16:19:26 +02:00
2023-04-23 16:03:02 +03:00
2023-01-17 12:28:00 +01:00
2022-01-18 12:15:18 +01:00
2022-05-13 07:11:58 +02:00
2022-08-15 16:58:05 +03:00
2022-05-13 07:11:58 +02:00