Files
scylladb/utils
Benny Halevy 87bfb57ccf utils: merge_to_gently: prevent stall in std::copy_if
std::copy_if runs without yielding.

See https://github.com/scylladb/scylla/issues/8897#issuecomment-867522480

Note that the standard states that no iterators or references are invalidated
on insert so we can keep inserting before last1 when merging the
remainder of list2 at the tail of list1.

Fixes #8897

Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
(cherry picked from commit 453e7c8795)
2021-10-12 13:05:58 +03:00
..
2020-03-23 11:59:30 +02:00
2020-08-03 15:55:16 +03:00
2020-10-13 12:32:14 +03:00
2020-10-13 12:32:14 +03:00
2020-08-04 17:54:45 +03:00
2020-10-18 18:16:30 +03:00
2020-03-23 11:59:30 +02:00