Files
scylladb/api
Aleksandra Martyniuk 65fb562ae3 tasks: keep task's children in list
If std::vector is resized its iterators and references may
get invalidated. While task_manager::task::impl::_children's
iterators are avoided throughout the code, references to its
elements are being used.

Since children vector does not need random access to its
elements, change its type to std::list<foreign_task_ptr>, which
iterators and references aren't invalidated on element insertion.

Fixes: #16380.

Closes scylladb/scylladb#16381

(cherry picked from commit 9b9ea1193c)
2024-01-15 12:49:19 +02:00
..
2023-07-17 17:09:36 +03:00
2023-06-07 11:59:39 +02:00